Skip to content

Commit

Permalink
msbuild $env:Wap_Project_Path/$env:Wap_Project_Path.wapproj `
Browse files Browse the repository at this point in the history
/t:Restore `
/p:Configuration=${{ matrix.configuration }} `
/p:TargetFramework=net8.0-windows `
/p:RuntimeIdentifiers="win-x86;win-x64"

if ($LASTEXITCODE -ne 0) {
    Write-Error "MSBuild Restore failed with exit code $LASTEXITCODE"
    exit $LASTEXITCODE
}
echo "MSBuild Restore succeeded"

msbuild $env:Wap_Project_Path/$env:Wap_Project_Path.wapproj `
/t:Build `
/p:AppxBundlePlatforms="$env:Appx_Bundle_Platforms" `
/p:Configuration=${{ matrix.configuration }} `
/p:UapAppxPackageBuildMode=$env:BuildMode `
/p:AppxBundle=$env:AppxBundle `
/p:PackageCertificateKeyFile=$env:CERT_FILE_PATH `
/p:AppxPackageDir="$env:AppxPackageDir" `
/p:GenerateAppxPackageOnBuild=true `
/p:TargetFramework=net8.0-windows `
/p:RuntimeIdentifiers="win-x86;win-x64"
  • Loading branch information
mfe- committed Mar 24, 2024
1 parent 780e49e commit 4952009
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ jobs:
msbuild $env:Wap_Project_Path/$env:Wap_Project_Path.wapproj `
/t:Restore `
/p:Configuration=${{ matrix.configuration }}
/p:Configuration=${{ matrix.configuration }} `
/p:TargetFramework=net8.0-windows `
/p:RuntimeIdentifiers="win-x86;win-x64"
if ($LASTEXITCODE -ne 0) {
Write-Error "MSBuild Restore failed with exit code $LASTEXITCODE"
Expand All @@ -199,7 +201,9 @@ jobs:
/p:AppxBundle=$env:AppxBundle `
/p:PackageCertificateKeyFile=$env:CERT_FILE_PATH `
/p:AppxPackageDir="$env:AppxPackageDir" `
/p:GenerateAppxPackageOnBuild=true
/p:GenerateAppxPackageOnBuild=true `
/p:TargetFramework=net8.0-windows `
/p:RuntimeIdentifiers="win-x86;win-x64"
if ($LASTEXITCODE -ne 0) {
Write-Error "MSBuild Build failed with exit code $LASTEXITCODE"
Expand Down

0 comments on commit 4952009

Please sign in to comment.