Skip to content

Commit ff392f0

Browse files
authored
fix: avoid build errors in CI
1 parent 23f7819 commit ff392f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)