add -p:NoWarn=NETSDK1179 to build yml due to SDK 6.0.300 bug

This commit is contained in:
Caelan Sayler
2022-05-14 11:17:38 +01:00
parent 2d9c7cc37d
commit 1d1af9d8ce
2 changed files with 8 additions and 4 deletions

View File

@@ -53,9 +53,13 @@ jobs:
with:
dotnet-version: 6.0.*
- name: Build SquirrelMac
run: dotnet publish -v minimal --self-contained -c Release -r osx.10.12-x64 ./src/Squirrel.CommandLine.OSX/Squirrel.CommandLine.OSX.csproj -o ./publish
run: |
dotnet publish -v minimal --self-contained -c Release -r osx.10.12-x64 ./src/Squirrel.CommandLine.OSX/Squirrel.CommandLine.OSX.csproj -o ./publish -p:NoWarn=NETSDK1179
ls -la ./publish
- name: Build UpdateMac
run: dotnet publish -v minimal --self-contained -c Release -r osx.10.12-x64 ./src/Update.OSX/Update.OSX.csproj -o ./publish
run: |
dotnet publish -v minimal --self-contained -c Release -r osx.10.12-x64 ./src/Update.OSX/Update.OSX.csproj -o ./publish -p:NoWarn=NETSDK1179
ls -la ./publish
- name: Upload MacOS Artifacts
uses: actions/upload-artifact@v3
with:

View File

@@ -26,8 +26,8 @@ foreach ($Folder in $Folders) {
# Build single-exe packaged projects
# New-Item -Path "$Out" -Name "win-x86" -ItemType "directory"
$BinOut = $Out
dotnet publish -v minimal -c Release -r win-x64 --self-contained=true "$PSScriptRoot\src\Squirrel.CommandLine.Windows\Squirrel.CommandLine.Windows.csproj" -o "$Out"
dotnet publish -v minimal -c Release -r win-x86 --self-contained=true "$PSScriptRoot\src\Update.Windows\Update.Windows.csproj" -o "$BinOut"
dotnet publish -v minimal -c Release -r win-x64 --self-contained=true "$PSScriptRoot\src\Squirrel.CommandLine.Windows\Squirrel.CommandLine.Windows.csproj" -o "$Out" -p:NoWarn=NETSDK1179
dotnet publish -v minimal -c Release -r win-x86 --self-contained=true "$PSScriptRoot\src\Update.Windows\Update.Windows.csproj" -o "$BinOut" -p:NoWarn=NETSDK1179
# Copy over all files we need
Copy-Item -Path "$PSScriptRoot\vendor\7zip\*" -Destination "$BinOut" -Recurse