Skip to content

Commit 976f7e3

Browse files
authored
Update main.yml
1 parent a1e771a commit 976f7e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build and Publish .NET MAUI App
2-
32
on:
43
push:
54
branches: [ "master" ]
@@ -49,12 +48,17 @@ jobs:
4948
uses: actions/setup-dotnet@v4
5049
with:
5150
dotnet-version: 8.0.x
51+
- name: Update Workloads
52+
run: dotnet workload update
5253
- name: Install .NET MAUI
5354
run: dotnet workload install maui
5455
- name: Restore dependencies
5556
run: dotnet restore
5657
- name: Build Windows
57-
run: dotnet build -c Release -f net8.0-windows --no-restore
58+
run: |
59+
dotnet build -c Release -f net8.0-windows --no-restore \
60+
/p:TargetPlatformVersion=10.0.17763.0 \
61+
/p:SupportedOSPlatformVersion=10.0.17763.0
5862
- name: List directory contents
5963
run: |
6064
ls -r

0 commit comments

Comments
 (0)