Skip to content

Commit 849a088

Browse files
authored
Merge pull request #1494 from bUnit-dev/stable
Update main with documentation in stable
2 parents ede43b8 + be59e05 commit 849a088

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

docs/samples/tests/razor/bunit.docs.razor.samples.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
<PackageReference Include="Moq" Version="4.16.1" />
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
1111
<PackageReference Include="NSubstitute" Version="4.2.2" />
12-
<PackageReference Include="xunit" Version="2.4.2" />
13-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
14-
<PrivateAssets>all</PrivateAssets>
15-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16-
</PackageReference>
12+
<PackageReference Include="xunit" Version="2.8.1" />
13+
<!-- DO NOT UPGRADE TO versions > 2.4.5 as they do not support .net5 or older -->
14+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
15+
<PrivateAssets>all</PrivateAssets>
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
17+
<NoWarn>NU1701</NoWarn>
18+
</PackageReference>
1719
</ItemGroup>
1820

1921
<ItemGroup>

docs/samples/tests/xunit/bunit.docs.xunit.samples.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
<PackageReference Include="Moq" Version="4.16.1" />
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
1313
<PackageReference Include="NSubstitute" Version="4.2.2" />
14-
<PackageReference Include="xunit" Version="2.4.2" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18-
</PackageReference>
14+
<PackageReference Include="xunit" Version="2.8.1" />
15+
<!-- DO NOT UPGRADE TO versions > 2.4.5 as they do not support .net5 or older -->
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
19+
<NoWarn>NU1701</NoWarn>
20+
</PackageReference>
1921
</ItemGroup>
2022

2123
<ItemGroup>

docs/site/docs/getting-started/create-test-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The result should be a test project with a `.csproj` that looks like this (non b
173173
<ItemGroup>
174174
<PackageReference Include="bunit" Version="#{RELEASE_VERSION}#" />
175175
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
176-
<PackageReference Include="xunit" Version="2.6.2" />
176+
<PackageReference Include="xunit" Version="2.8.1" />
177177
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
178178
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
179179
<PrivateAssets>all</PrivateAssets>

src/bunit.template/template/Company.BlazorTests1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</ItemGroup>
2626

2727
<ItemGroup Condition="'$(testFramework_xunit)' == 'true'">
28-
<PackageReference Include="xunit" Version="2.6.2" />
28+
<PackageReference Include="xunit" Version="2.8.1" />
2929
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

0 commit comments

Comments
 (0)