# GitHub Actions windows-2025 Visual Studio 2022 path MSBuild cannot locate after image rollout

Status: search-observed
Product: GitHub Windows hosted image
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/github-actions-windows-2025-visual-studio-2022-path-msbuild-cannot-locate-after-image-rollout
Machine JSON: https://gitdocs.org/api/fixes/github-actions-windows-2025-visual-studio-2022-path-msbuild-cannot-locate-after-image-rollout.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Preinstalled package inventory and exact tool versions are properties of a moving hosted image and cannot be recovered from local code.

## Fix

```
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.
```

## Avoid

- 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.

## Observed Codex Queries

- 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

## Sources

- 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
