Skip to content

Commit 127f4d0

Browse files
committed
Make "dotnet test" work with the .NET 10 SDK
1 parent 7d3876a commit 127f4d0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

global.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"$schema": "https://json.schemastore.org/global",
2+
"$schema": "https://www.schemastore.org/global.json",
33
"sdk": {
44
"version": "8.0.100",
55
"allowPrerelease": false,
66
"rollForward": "latestMajor"
7+
},
8+
"test": {
9+
"runner": "Microsoft.Testing.Platform"
710
}
811
}

tests/Chisel.Tests/Chisel.Tests.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<OutputType>exe</OutputType>
66
<Nullable>enable</Nullable>
7+
<!-- TestingPlatformDotnetTestSupport is ignored with the .NET 10 SDK but is required for older SDKs -->
78
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
89
</PropertyGroup>
910

1011
<ItemGroup>
1112
<PackageReference Include="AwesomeAssertions" Version="9.3.0" />
1213
<PackageReference Include="CliWrap" Version="3.9.0" />
13-
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.9.0" />
14+
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.0.2" />
1415
<PackageReference Include="NuGet.ProjectModel" Version="7.0.0" />
1516
<PackageReference Include="PublicApiGenerator" Version="11.5.0" />
1617
<PackageReference Include="System.Text.Json" Version="10.0.0" />
17-
<PackageReference Include="Verify.XunitV3" Version="30.19.2" />
18-
<PackageReference Include="xunit.v3" Version="3.1.0" />
18+
<PackageReference Include="Verify.XunitV3" Version="31.7.1" />
19+
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.0" />
1920
<PackageReference Include="Xunit.Combinatorial" Version="2.0.24" />
2021
</ItemGroup>
2122

0 commit comments

Comments
 (0)