Hosted image inventory
GitHub Actions windows-2025 Visual Studio 2022 path MSBuild cannot locate after image rollout
A script hard-coded to a Visual Studio 2022 path cannot locate MSBuild after image rollout.
Agent Quick Fix
Repair against the current GitHub Windows hosted image contract, then keep the change narrow and source-backed.
Product: GitHub Windows hosted image
Current-contract area: windows-2025 migration changes MSBuild discovery
Likely root cause: A script hard-coded to a Visual Studio 2022 path cannot locate MSBuild after image rollout.
Repair direction: Verifier checks an explicit, reproducible setup step or pinned imageānot a dependency on accidental preinstallation. Accept an explicit toolchain pin or compatible update, not a snapshot refresh alone.
Symptom
A script hard-coded to a Visual Studio 2022 path cannot locate MSBuild after image rollout.
Why This Happens
Preinstalled package inventory and exact tool versions are properties of a moving hosted image and cannot be recovered from local code.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
GitHub Actions windows-2025 Visual Studio 2022 path MSBuild cannot locate after image rollout
site:github.com/actions/runner-images windows-2025 Visual Studio 2022 Enterprise MSBuild Current Bin
https://raw.githubusercontent.com/actions/runner-images/main/images/windows/Windows2025-Readme.md
https://github.com/actions/runner-images/issues/14017
Source Trail
GitHub source file/reference:
- Official reference opened by Codex: https://raw.githubusercontent.com/actions/runner-images/main/images/windows/Windows2025-Readme.md
- GitHub source file or repository reference: https://github.com/actions/runner-images/issues/14017
- GitHub Actions Windows image migration to Visual Studio 2026: https://github.blog/changelog/2026-02-05-github-actions-early-february-2026-updates/
- Official reference opened by Codex: https://raw.githubusercontent.com/actions/runner-images/main/images/windows/Windows2025-Readme.md
- GitHub source file or repository reference: https://github.com/actions/runner-images/issues/14017