microsoft / microsoft/react-native-windows
Calculator sample CI (Upgrade) legs fail with MSB8036: Windows SDK 10.0.22621.0 not found on build agents
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
Summary (plain terms)
The Calculator sample app fails to build in our automated CI (Upgrade) pipeline, but the exact same code builds and runs fine on a normal dev machine. The build machines (CI agents) are simply missing an older Windows SDK (10.0.22621.0) that the Calculator project asks for, so the compiler stops with:
error MSB8036: The Windows SDK version 10.0.22621.0 was not found.
Install the required version of Windows SDK or change the SDK version in the
project property pages or by right-clicking the solution and selecting
"Retarget solution".
This is an environment/agent-provisioning problem, not a bug in the app code or in any React Native / RNW version.
This is NOT a 0.85 regression
In the same CI (Upgrade) run, the Calculator legs fail identically on both:
latest= 0.84.0 (the previous stable), andpreview= 0.85.0-preview.1 (the new one).
Because it fails the same way on the old version too, the 0.85 upgrade did not introduce this. It is a pre-existing infrastructure gap on the agents.
Corroborating evidence that it's the agents (not the code):
- Building the committed Calculator/fabric sample locally (RN 0.85.3 + react-native-windows@0.85.0-preview.1, Fabric / New Arch) succeeds in both Debug and Release (x64) — builds, deploys, launches, and renders the full UI. No
MSB8036/ SDK-22621 error, because the local machine has SDK 22621 installed. - The Native Module sample (cpp-lib) is 100% green in the same CI run (including all preview legs) — it doesn't pin SDK 22621, so it isn't affected.
Evidence / where to look
- Pipeline: CI (Upgrade) — Sample Apps upgrade run.
- Run:
30375278469(2026-07-28). - Result: 97 pass / 48 fail. All 48 failures are Calculator legs (cppwinrt / csharp / fabric). Every Native Module (cpp-lib) leg passed.
- Error on failing legs:
MSB8036: The Windows SDK version 10.0.22621.0 was not found. - Agent image: VS 2026 / Windows Server 2025 agents (these images ship SDK 10.0.26100 but not 10.0.22621).
Impact
- CI (Upgrade) shows red for Calculator legs, which is noise on the 0.85 release checklist and can mask real regressions.
- No end-user / runtime impact — the shipped Calculator sample builds and runs correctly for anyone whose SDK matches.
Suggested fixes (pick one)
- Install Windows SDK 10.0.22621.0 on the CI (Upgrade) agents (restores parity with what the sample targets), or
- Retarget the Calculator sample (and/or the upgrade template) to an SDK version the agents already have (e.g., 10.0.26100.0), so it no longer depends on 22621.
Option 1 is the smaller change and keeps the sample as-is; option 2 removes the dependency on a specific older SDK going forward.
Notes
- Filed as a follow-up from the 0.85 release validation (tracking issue #16312). Documented there under sample-app CI, now broken out into this dedicated issue so the CI/agent owners can pick it up.
- Not a 0.85 blocker.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the CI (Upgrade) sample-app pipeline and the Calculator project or upgrade template to identify where SDK 10.0.22621.0 is required; compare that requirement with the VS 2026/Windows Server 2025 agent image. Re-run the Calculator cppwinrt, csharp, and fabric legs after the selected environment or targeting change; done means they pass without MSB8036.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, csharp, github-actions
- Domain
- build-system, ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100