Skip to content

Commit 4547cf9

Browse files
committed
fix(ci): disable MSTest Testing Platform for .NET 10 SDK compatibility
.NET 10.0.201 SDK has a protocol version mismatch with MSTest 3.8.3 Testing Platform mode - the SDK looks for protocol version 8 which the current MSTest package doesn't support. This disables Testing Platform mode in CI by passing MSBuild properties: - EnableMSTestRunner=false - TestingPlatformDotnetTestSupport=false Reverts to classic VSTest adapter mode with --logger "trx" instead of --report-trx.
1 parent cb37e52 commit 4547cf9

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
dotnet-quality: 'preview'
4242

4343
- name: Build
44-
run: dotnet build test/NumSharp.UnitTest/NumSharp.UnitTest.csproj --configuration Release -p:NoWarn=${{ env.DOTNET_NOWARN }}
44+
run: |
45+
# Disable MSTest Testing Platform for CI due to .NET 10 SDK protocol version mismatch
46+
dotnet build test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
47+
--configuration Release \
48+
-p:NoWarn=${{ env.DOTNET_NOWARN }} \
49+
-p:EnableMSTestRunner=false \
50+
-p:TestingPlatformDotnetTestSupport=false
4551
4652
# Test filtering:
4753
# - OpenBugs: excluded (known-failing bug reproductions)
@@ -58,9 +64,9 @@ jobs:
5864
if [[ "$RUNNER_OS" != "Windows" ]]; then
5965
FILTER="$FILTER&TestCategory!=WindowsOnly"
6066
fi
61-
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
67+
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
6268
--configuration Release --no-build --framework net8.0 \
63-
--filter "$FILTER" --report-trx
69+
--filter "$FILTER" --logger "trx"
6470
6571
- name: Test (net10.0)
6672
shell: bash
@@ -73,9 +79,9 @@ jobs:
7379
if [[ "$RUNNER_OS" != "Windows" ]]; then
7480
FILTER="$FILTER&TestCategory!=WindowsOnly"
7581
fi
76-
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
82+
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
7783
--configuration Release --no-build --framework net10.0 \
78-
--filter "$FILTER" --report-trx
84+
--filter "$FILTER" --logger "trx"
7985
8086
- name: Upload Test Results
8187
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)