Skip to content

Commit 1b704e3

Browse files
committed
fix(ci): use --project flag for dotnet test (.NET 10 SDK requirement)
.NET 10 SDK changed the CLI syntax - project paths must now be specified with explicit --project flag instead of positional argument. Error was: "Specifying a project for 'dotnet test' should be via '--project'."
1 parent 7b98edd commit 1b704e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
if [[ "$RUNNER_OS" != "Windows" ]]; then
5959
FILTER="$FILTER&TestCategory!=WindowsOnly"
6060
fi
61-
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
61+
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
6262
--configuration Release --no-build --framework net8.0 \
6363
--filter "$FILTER" --logger "trx"
6464
@@ -73,7 +73,7 @@ jobs:
7373
if [[ "$RUNNER_OS" != "Windows" ]]; then
7474
FILTER="$FILTER&TestCategory!=WindowsOnly"
7575
fi
76-
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
76+
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
7777
--configuration Release --no-build --framework net10.0 \
7878
--filter "$FILTER" --logger "trx"
7979

0 commit comments

Comments
 (0)