Skip to content

Commit 70a1ad6

Browse files
authored
Replace XML with actual csproj excerpt (#1066)
* Replace XML with actual csproj excerpt * Just don't worry about line numbers
1 parent ecd21e7 commit 70a1ad6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,9 @@ Any tests using the new style CSPROJ format, either .NET Core or .NET 4.x, need
2323
package `Microsoft.NET.Test.Sdk`. Your test assemblies must also be .NET Core or .NET 4.x, not .NET Standard.
2424

2525
You can create a new NUnit test project using `dotnet new nunit`. It will create an ItemGroup in the csproj file with
26-
the necessary references.
27-
28-
```xml
29-
<ItemGroup>
30-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
31-
<PackageReference Include="NUnit" Version="4.0.1" />
32-
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
33-
<PackageReference Include="NUnit.Analyzers" Version="3.10.0" />
34-
<PackageReference Include="coverlet.collector" Version="6.0.0" />
35-
</ItemGroup>
36-
```
26+
the necessary references. The `.csproj` will look similar to below.
27+
28+
[!code-xml[](~/snippets/Snippets.NUnit/Snippets.NUnit.csproj)]
3729

3830
.NET Core test can be run on the command line with `dotnet test`, for example,
3931

0 commit comments

Comments
 (0)