Skip to content

Commit 4bc8d6a

Browse files
Multiple build changes intended as a workaround to enable successful .NET 10 builds in GitHub Actions.
1 parent c6ee761 commit 4bc8d6a

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
env:
1313
USE_FULL_NUMERIC_PROVIDER: "true"
14+
MSBUILDDISABLENODEREUSE: "1" # Disable MSBuild node reuse to prevent hang
1415

1516
jobs:
1617
build:
@@ -27,5 +28,9 @@ jobs:
2728
run: dotnet restore
2829
- name: Build
2930
run: dotnet build --no-restore
30-
- name: Test
31-
run: dotnet test --no-build --verbosity quiet
31+
- name: Test (.NET 8.0)
32+
run: dotnet test --no-build --framework net8.0 --verbosity quiet
33+
- name: Test (.NET 9.0)
34+
run: dotnet test --no-build --framework net9.0 --verbosity quiet
35+
- name: Test (.NET 10.0)
36+
run: dotnet test --no-build --framework net10.0 --verbosity quiet

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</PropertyGroup>
4848

4949
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests'))">
50-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
50+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
5151
<PackageReference Include="xunit" Version="2.9.3"/>
52-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"/>
52+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5"/>
5353
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
5454
<Using Include="Xunit"/>
5555
</ItemGroup>
@@ -62,7 +62,7 @@
6262
</PropertyGroup>
6363

6464
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests.Data'))">
65-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
65+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
6666
<PackageReference Include="xunit" Version="2.9.3"/>
6767
<Using Include="Xunit"/>
6868
</ItemGroup>

global.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"version": "10.0.x",
44
"rollForward": "latestFeature",
55
"allowPrerelease": false
6+
},
7+
"test": {
8+
"runner": "Microsoft.Testing.Platform"
69
}
710
}

0 commit comments

Comments
 (0)