File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2121 cache : true
2222 cache-dependency-path : ' **/packages.lock.json'
2323 - name : dotnet restore
24- run : dotnet restore --locked-mode
24+ run : dotnet restore --locked-mode /p:BuildWithNetFrameworkHostedCompiler=true
2525 - name : dotnet format
2626 run : dotnet format --verify-no-changes --no-restore
2727
7575 cache : true
7676 cache-dependency-path : ' **/packages.lock.json'
7777 - name : dotnet restore
78- run : dotnet restore --locked-mode
78+ run : dotnet restore --locked-mode /p:BuildWithNetFrameworkHostedCompiler=true
7979 # This doesn't call `dotnet publish` on the entire solution, just the
8080 # projects we care about building. Doing a full publish includes test
8181 # libraries and stuff which is pointless.
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ if (Test-Path $buildPath) {
113113New-Item - ItemType Directory - Path $buildPath - Force
114114
115115# Build in release mode
116- & dotnet.exe restore
116+ & dotnet.exe restore / p:BuildWithNetFrameworkHostedCompiler = true
117117if ($LASTEXITCODE -ne 0 ) { throw " Failed to dotnet restore" }
118118$servicePublishDir = Join-Path $buildPath " service"
119119& dotnet.exe publish .\Vpn.Service\Vpn.Service.csproj - c Release - a $arch - o $servicePublishDir / p:Version= $version
You can’t perform that action at this time.
0 commit comments