Calculator sample CI (Upgrade) legs fail with MSB8036: Windows SDK 10.0.22621.0 not found on build agents
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 领域
- build-system, ci-cd, devops
调研方向
检查 sample-app 的 CI (Upgrade) pipeline 以及 Calculator 项目或 upgrade 模板,以确定哪些位置需要 SDK 10.0.22621.0;将该要求与 VS 2026/Windows Server 2025 agent image 进行比较。在完成选定的环境或 targeting 更改后,重新运行 Calculator 的 cppwinrt、csharp 和 fabric job;当它们在没有 MSB8036 的情况下通过时即表示完成。
由索引模型根据 Issue 内容生成。
描述
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 + [email protected], 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.
- 主要语言
- C++
- 星标
- 17.4k
- 派生
- 1.2k
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/react-native-windows 的其他 Issue
-
Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/react-native-windows#16340 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/react-native-windows#16321 · 1 条评论 ·
维护者通常 2 天内回复
-
Needs: Triage :mag:
难度 5/5 一周以上 新手友好度 30/100
microsoft/react-native-windows#16442 · 1 条评论 ·
维护者通常 2 天内回复
-
Fabric: activating the window doesn't announce the window or the focused control to a screen reader未关闭Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16435 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16410 ·
维护者通常 2 天内回复
查看 microsoft/react-native-windows 的全部 Issue
相似的 Issue
-
torch_ops/logprob.cu does not compile with the serving container's nvcc (13.3.73); check_torch_ops.py cannot run as shipped可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1 小时以内 新手友好度 72/100
ashhart/TensorFold#535 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
agent:Windows bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复