From 2bbe828c07167fd44936a2c534009ae896bb4874 Mon Sep 17 00:00:00 2001 From: Arlo Date: Tue, 12 May 2026 23:17:45 -0500 Subject: [PATCH 1/2] Initial copy-over of Windows SDK installer script from 7x repo at https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/c8f76d072df53d3622fb5440d63afb06cb9e7a10/build/Install-WindowsSDK.ps1 --- Install-WindowsSdk.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Install-WindowsSdk.ps1 diff --git a/Install-WindowsSdk.ps1 b/Install-WindowsSdk.ps1 new file mode 100644 index 0000000..afeb2db --- /dev/null +++ b/Install-WindowsSdk.ps1 @@ -0,0 +1,10 @@ + +$WinSdkTempDir = "C:\WinSdkTemp\" +$WinSdkSetupExe = "C:\WinSdkTemp\" + "WinSdkSetup.exe" + +mkdir $WinSdkTempDir + +$client = [System.Net.WebClient]::new() +$client.DownloadFile("https://go.microsoft.com/fwlink/p/?linkid=870807", $WinSdkSetupExe) + +Start-Process -Wait $WinSdkSetupExe "/features OptionId.UWPCpp /q" \ No newline at end of file From 839fa23e4820bb14a3d1858fd529b63a6ad5afdb Mon Sep 17 00:00:00 2001 From: Arlo Date: Tue, 12 May 2026 23:17:45 -0500 Subject: [PATCH 2/2] Bumped runner to windows-2025 and added build step for Windows SDK installation --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13d5215..cd675f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ env: jobs: # This workflow contains a single job called "Xaml-Style-Check" Xaml-Style-Check: - runs-on: windows-2022 + runs-on: windows-2025 # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -191,6 +191,10 @@ jobs: copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json mkdir ./components + - name: Install Windows SDKs + shell: pwsh + run: ./tooling/Install-WindowsSdk.ps1 + - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v2