Skip to content

Commit 8289207

Browse files
committed
add selfContainer flag
1 parent 137c0e3 commit 8289207

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/dotnet-windows.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ env:
1919
NugetPackageVersion: '99.0.0-preview${{ github.run_number }}'
2020
CurrentSemanticVersionBase: '99.0.0'
2121
Package_Creation_Path: './src/PJ.ContextActions.Maui/bin/Release'
22-
MSBUILD_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe'
2322

2423
jobs:
2524
build:
@@ -61,16 +60,18 @@ jobs:
6160
- name: Build library (Windows)
6261
run: |
6362
"${{ env.MSBUILD_PATH }}" ${{env.LIB_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:PackageVersion=${{ env.NugetPackageVersion }} /p:Version=${{ env.NugetPackageVersion }}
63+
6464
shell: cmd
6565

6666
- name: Restore sample dependencies (Windows)
6767
run: |
68-
"${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64
68+
"${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:WindowsAppSDKSelfContained=true
6969
shell: cmd
7070

7171
- name: Build Sample app (Windows)
7272
run: |
73-
"${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64
73+
"${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:WindowsAppSDKSelfContained=true
74+
continue-on-error: true
7475
shell: cmd
7576

7677
# Android builds using dotnet build

0 commit comments

Comments
 (0)