File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 $x.Save($filePath)
7474 }
7575
76+ - name : Install ATL components
77+ shell : pwsh
78+ run : |
79+ $vswhere = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe"
80+ $vsInstaller = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vs_installer.exe"
81+ $installPath = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
82+
83+ if (-not $installPath) {
84+ throw "Visual Studio installation path not found"
85+ }
86+
87+ & $vsInstaller modify `
88+ --installPath "$installPath" `
89+ --add Microsoft.VisualStudio.Component.VC.ATL `
90+ --add Microsoft.VisualStudio.Component.VC.ATL.ARM64 `
91+ --quiet --norestart --wait
92+
93+ if ($LASTEXITCODE -ne 0) {
94+ throw "Visual Studio component installation failed with exit code $LASTEXITCODE"
95+ }
96+
7697 - name : Setup devcmd
7798 uses : ilammy/msvc-dev-cmd@v1
7899
You can’t perform that action at this time.
0 commit comments