Skip to content

Commit 42d7089

Browse files
authored
Add MSTest among common templates (#44523)
2 parents d5fdbb1 + 882a389 commit 42d7089

8 files changed

+40
-32
lines changed

src/Cli/Microsoft.TemplateEngine.Cli/TemplateListCoordinator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ private async Task<IEnumerable<ITemplateInfo>> GetCuratedListAsync(CancellationT
253253
"Microsoft.Common.Console", //console
254254
"Microsoft.Common.WPF", //wpf
255255
"Microsoft.Common.WinForms", //winforms
256-
"Microsoft.Web.Blazor" //blazor
256+
"Microsoft.Web.Blazor", //blazor
257+
"Microsoft.Test.MSTest" //mstest
257258
};
258259

259260
IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false);

test/EndToEnd.Tests/ProjectBuildTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public void DotnetNewShowsCuratedListCorrectly()
194194
[\w \.\(\)]+blazor\s+\[C#\][\w\ \/]+
195195
[\w \.\(\)]+classlib\s+\[C#\],F#,VB[\w\ \/]+
196196
[\w \.\(\)]+console\s+\[C#\],F#,VB[\w\ \/]+
197+
[\w \.\(\)]+mstest\s+\[C#\],F#,VB[\w\ \/]+
197198
";
198199

199200
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

test/dotnet-new.Tests/Approvals/DotnetNewDebugOptionsTests.CanShowConfigWithDebugShowConfig.Linux.verified.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ Generators Type
1414
The 'dotnet new' command creates a .NET project based on a template.
1515

1616
Common templates are:
17-
Template Name Short Name Language Tags
17+
Template Name Short Name Language Tags
1818
%TABLE HEADER DELIMITER%
19-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20-
Class Library classlib [C#],F#,VB Common/Library
21-
Console App console [C#],F#,VB Common/Console
19+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20+
Class Library classlib [C#],F#,VB Common/Library
21+
Console App console [C#],F#,VB Common/Console
22+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
2223

2324
An example would be:
2425
dotnet new console

test/dotnet-new.Tests/Approvals/DotnetNewDebugOptionsTests.CanShowConfigWithDebugShowConfig.OSX.verified.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ Generators Type
1414
The 'dotnet new' command creates a .NET project based on a template.
1515

1616
Common templates are:
17-
Template Name Short Name Language Tags
17+
Template Name Short Name Language Tags
1818
%TABLE HEADER DELIMITER%
19-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20-
Class Library classlib [C#],F#,VB Common/Library
21-
Console App console [C#],F#,VB Common/Console
19+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20+
Class Library classlib [C#],F#,VB Common/Library
21+
Console App console [C#],F#,VB Common/Console
22+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
2223

2324
An example would be:
2425
dotnet new console

test/dotnet-new.Tests/Approvals/DotnetNewDebugOptionsTests.CanShowConfigWithDebugShowConfig.Windows.verified.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ Generators Type
1414
The 'dotnet new' command creates a .NET project based on a template.
1515

1616
Common templates are:
17-
Template Name Short Name Language Tags
17+
Template Name Short Name Language Tags
1818
%TABLE HEADER DELIMITER%
19-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20-
Class Library classlib [C#],F#,VB Common/Library
21-
Console App console [C#],F#,VB Common/Console
22-
Windows Forms App winforms [C#],VB Common/WinForms
23-
WPF Application wpf [C#],VB Common/WPF
19+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
20+
Class Library classlib [C#],F#,VB Common/Library
21+
Console App console [C#],F#,VB Common/Console
22+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
23+
Windows Forms App winforms [C#],VB Common/WinForms
24+
WPF Application wpf [C#],VB Common/WPF
2425

2526
An example would be:
2627
dotnet new console

test/dotnet-new.Tests/Approvals/DotnetNewTests.CanShowBasicInfo.Linux.verified.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
The 'dotnet new' command creates a .NET project based on a template.
22

33
Common templates are:
4-
Template Name Short Name Language Tags
5-
-------------- ---------- ---------- ----------------------
6-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7-
Class Library classlib [C#],F#,VB Common/Library
8-
Console App console [C#],F#,VB Common/Console
4+
Template Name Short Name Language Tags
5+
------------------- ---------- ---------- -----------------------
6+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7+
Class Library classlib [C#],F#,VB Common/Library
8+
Console App console [C#],F#,VB Common/Console
9+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
910

1011
An example would be:
1112
dotnet new console

test/dotnet-new.Tests/Approvals/DotnetNewTests.CanShowBasicInfo.OSX.verified.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
The 'dotnet new' command creates a .NET project based on a template.
22

33
Common templates are:
4-
Template Name Short Name Language Tags
5-
-------------- ---------- ---------- ----------------------
6-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7-
Class Library classlib [C#],F#,VB Common/Library
8-
Console App console [C#],F#,VB Common/Console
4+
Template Name Short Name Language Tags
5+
------------------- ---------- ---------- -----------------------
6+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7+
Class Library classlib [C#],F#,VB Common/Library
8+
Console App console [C#],F#,VB Common/Console
9+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
910

1011
An example would be:
1112
dotnet new console

test/dotnet-new.Tests/Approvals/DotnetNewTests.CanShowBasicInfo.Windows.verified.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
The 'dotnet new' command creates a .NET project based on a template.
22

33
Common templates are:
4-
Template Name Short Name Language Tags
5-
----------------- ---------- ---------- ----------------------
6-
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7-
Class Library classlib [C#],F#,VB Common/Library
8-
Console App console [C#],F#,VB Common/Console
9-
Windows Forms App winforms [C#],VB Common/WinForms
10-
WPF Application wpf [C#],VB Common/WPF
4+
Template Name Short Name Language Tags
5+
------------------- ---------- ---------- -----------------------
6+
Blazor Web App blazor [C#] Web/Blazor/WebAssembly
7+
Class Library classlib [C#],F#,VB Common/Library
8+
Console App console [C#],F#,VB Common/Console
9+
MSTest Test Project mstest [C#],F#,VB Test/MSTest/Desktop/Web
10+
Windows Forms App winforms [C#],VB Common/WinForms
11+
WPF Application wpf [C#],VB Common/WPF
1112

1213
An example would be:
1314
dotnet new console

0 commit comments

Comments
 (0)