ci: 在dotnet命令中指定项目文件以明确构建目标

This commit is contained in:
Lannamokia
2025-08-08 15:18:20 +08:00
parent 39e5f5f683
commit cbe6af5674
+3 -3
View File
@@ -55,13 +55,13 @@ jobs:
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore --verbosity minimal
run: dotnet restore VHDMounter.csproj --verbosity minimal
- name: Build
run: dotnet build --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore --verbosity minimal
run: dotnet build VHDMounter.csproj --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore --verbosity minimal
- name: Test
run: dotnet test --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal --logger trx --results-directory TestResults
run: dotnet test VHDMounter.csproj --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal --logger trx --results-directory TestResults
continue-on-error: true
- name: Publish Test Results