Skip to content

Commit 7af4106

Browse files
committed
Pin setup-msbuild to Visual Studio 18+
Add a `with: vs-version: '[18.0,)'` to the microsoft/setup-msbuild step in the CI workflow. This ensures the action uses Visual Studio 18 (VS2026) or newer when adding MSBuild to PATH, aligning the runner environment with project requirements.
1 parent f2515b1 commit 7af4106

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/msbuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434

3535
- name: Add MSBuild to PATH
3636
uses: microsoft/setup-msbuild@v3
37+
with:
38+
vs-version: '[18.0,)' # VS2026+
3739

3840
- name: Restore NuGet packages
3941
working-directory: ${{env.GITHUB_WORKSPACE}}

0 commit comments

Comments
 (0)