Skip to content

Commit 0b27367

Browse files
authored
fix: avoid build errors in CI (#115)
1 parent 23f7819 commit 0b27367

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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

@@ -75,7 +75,7 @@ jobs:
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.

scripts/Publish.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if (Test-Path $buildPath) {
113113
New-Item -ItemType Directory -Path $buildPath -Force
114114

115115
# Build in release mode
116-
& dotnet.exe restore
116+
& dotnet.exe restore /p:BuildWithNetFrameworkHostedCompiler=true
117117
if ($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

0 commit comments

Comments
 (0)