You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update docs for test templates
* Update the 'a' tags for test frameworks
* Fix hyperlinks
* Update hyperlinks
* undo change
* Add section for mstest class
* Fix bug with link for mstest class
Copy file name to clipboardExpand all lines: docs/core/testing/unit-testing-code-coverage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ namespace System.Numbers
63
63
64
64
### Create test projects
65
65
66
-
Create two new **xUnit Test Project (.NET Core)** templates from the same command prompt using the [`dotnet new xunit`](../tools/dotnet-new-sdk-templates.md#test) command:
66
+
Create two new **xUnit Test Project (.NET Core)** templates from the same command prompt using the [`dotnet new xunit`](../tools/dotnet-new-sdk-templates.md#xunit) command:
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-new-sdk-templates.md
+91-2Lines changed: 91 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ The templates that ship with the .NET SDK have the following additional options:
130
130
131
131
***
132
132
133
-
## <aname="test"></a> `mstest`, `xunit`
133
+
## <aname="mstest"></a> `mstest`
134
134
135
135
-**`-f|--framework <FRAMEWORK>`**
136
136
@@ -140,6 +140,94 @@ The templates that ship with the .NET SDK have the following additional options:
140
140
141
141
| SDK version | Default value |
142
142
|-------------|-----------------|
143
+
| 9.0 |`net9.0`|
144
+
| 8.0 |`net8.0`|
145
+
| 7.0 |`net7.0`|
146
+
| 6.0 |`net6.0`|
147
+
| 5.0 |`net5.0`|
148
+
| 3.1 |`netcoreapp3.1`|
149
+
150
+
The ability to create a project for an earlier TFM depends on having that version of the SDK installed. For example, if you have only the .NET 6 SDK installed, then the only value available for `--framework` is `net6.0`. If you install the .NET 5 SDK, the value `net5.0` becomes available for `--framework`. If you install the .NET Core 3.1 SDK, `netcoreapp3.1` becomes available, and so on. So by specifying `--framework netcoreapp3.1` you can target .NET Core 3.1 even while running `dotnet new` in the .NET 6 SDK.
151
+
152
+
-**`--no-restore`**
153
+
154
+
Doesn't execute an implicit restore during project creation.
155
+
156
+
-**`--sdk`**
157
+
158
+
Use MSTest.Sdk project style.
159
+
160
+
-**`--test-runner <TEST_RUNNER>`**
161
+
162
+
The runner/platform for the test project. The possible values are:
Copy file name to clipboardExpand all lines: includes/templates.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,11 @@ The following table shows the templates that come pre-installed with the .NET SD
11
11
| Windows Forms (WinForms) Application |[`winforms`](../docs/core/tools/dotnet-new-sdk-templates.md#winforms)|[C#], VB | Common/WinForms | 3.0 (5.0 for VB) |
12
12
| Windows Forms (WinForms) Class library |[`winformslib`](../docs/core/tools/dotnet-new-sdk-templates.md#winforms)|[C#], VB | Common/WinForms | 3.0 (5.0 for VB) |
13
13
| Worker Service |[`worker`](../docs/core/tools/dotnet-new-sdk-templates.md#web-others)|[C#]| Common/Worker/Web | 3.0 |
14
-
| Unit Test Project |[`mstest`](../docs/core/tools/dotnet-new-sdk-templates.md#test)|[C#], F#, VB | Test/MSTest | 1.0 |
0 commit comments