Skip to content

Commit f883a35

Browse files
Copilotanupriya13
andcommitted
Fix: Install Windows SDK 10.0.22621.0 in CI workflow instead of modifying project files
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
1 parent c0f4e62 commit f883a35

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/template-buildsample.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v3
5656

57+
- name: Install Windows SDK 10.0.22621.0
58+
run: |
59+
$sdkVersion = "10.0.22621.0"
60+
$installerUrl = "https://go.microsoft.com/fwlink/?linkid=2272610"
61+
$installerPath = "$env:TEMP\winsdksetup.exe"
62+
Write-Host "Downloading Windows SDK $sdkVersion..."
63+
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
64+
Write-Host "Installing Windows SDK $sdkVersion..."
65+
Start-Process -FilePath $installerPath -ArgumentList "/quiet", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit" -Wait
66+
Write-Host "Windows SDK installation completed."
67+
5768
- name: Gather environment info
5869
run: npx envinfo
5970

samples/Calculator/cppwinrt/windows/Calculator/Calculator.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<ProjectGuid>{d860176d-808a-4119-8bef-7fa74976a51f}</ProjectGuid>
1010
<ProjectName>Calculator</ProjectName>
1111
<RootNamespace>Calculator</RootNamespace>
12-
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
1312
<DefaultLanguage>en-US</DefaultLanguage>
1413
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
1514
<AppContainerApplication>true</AppContainerApplication>

samples/NativeModuleSample/cpp-lib/example-old/windows/NativeModuleSampleExampleOld/NativeModuleSampleExampleOld.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<ProjectGuid>{7218518e-3fa5-49ea-96f9-ab01bf4e5266}</ProjectGuid>
1010
<ProjectName>NativeModuleSampleExampleOld</ProjectName>
1111
<RootNamespace>NativeModuleSampleExampleOld</RootNamespace>
12-
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
1312
<DefaultLanguage>en-US</DefaultLanguage>
1413
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
1514
<AppContainerApplication>true</AppContainerApplication>

0 commit comments

Comments
 (0)