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 21
21
cache : true
22
22
cache-dependency-path : ' **/packages.lock.json'
23
23
- name : dotnet restore
24
- run : dotnet restore --locked-mode
24
+ run : dotnet restore --locked-mode /p:BuildWithNetFrameworkHostedCompiler=true
25
25
- name : dotnet format
26
26
run : dotnet format --verify-no-changes --no-restore
27
27
75
75
cache : true
76
76
cache-dependency-path : ' **/packages.lock.json'
77
77
- name : dotnet restore
78
- run : dotnet restore --locked-mode
78
+ run : dotnet restore --locked-mode /p:BuildWithNetFrameworkHostedCompiler=true
79
79
# This doesn't call `dotnet publish` on the entire solution, just the
80
80
# projects we care about building. Doing a full publish includes test
81
81
# libraries and stuff which is pointless.
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ if (Test-Path $buildPath) {
113
113
New-Item - ItemType Directory - Path $buildPath - Force
114
114
115
115
# Build in release mode
116
- & dotnet.exe restore
116
+ & dotnet.exe restore / p:BuildWithNetFrameworkHostedCompiler = true
117
117
if ($LASTEXITCODE -ne 0 ) { throw " Failed to dotnet restore" }
118
118
$servicePublishDir = Join-Path $buildPath " service"
119
119
& 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