Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Calculator sample CI (Upgrade) legs fail with MSB8036: Windows SDK 10.0.22621.0 not found on build agents

未关闭
#16,362 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
cpp, csharp, github-actions

调研方向

检查 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 内容生成。

描述

Needs: Triage :mag:

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), and
  • preview = 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)

  1. Install Windows SDK 10.0.22621.0 on the CI (Upgrade) agents (restores parity with what the sample targets), or
  2. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/react-native-windows 的其他 Issue

查看 microsoft/react-native-windows 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。