C++/WinRT 是否需要安装 Windows Insider Preview 版本的 Windows 10?

Does C++/WinRT require installation of Windows Insider Preview builds of Windows 10?

C++/WinRT announcement 表示 "What this also means is that you no longer need to wait for us to update GitHub following the release of a new Windows SDK. Indeed, we will no longer be publishing the updated headers on GitHub at all since you can get them directly from the Windows SDK."

然而,如果一个 delves one click further 发现 "Windows 10 Preview Build of the SDK [is] to be used in conjunction with Windows 10 Insider Preview (Build 17025 or greater)" 和 "Installation on an operating system that is not a Windows 10 Insider Preview build is not supported and may fail."

现在必须安装 Windows Insider Preview of Windows 10 吗?这要么是一个可怕而漫长的过程,要么是完全不可能的,具体取决于一个人的管理员权限。

或者可以获取 SDK 并在具有标准 Windows 10 build 的盒子上使用 C++/WinRT 位吗?

C++/WinRT 工具链某些方面的最简单途径是否仍然 GitHub?

如果有人在非Windows-10 盒子上开发,例如Windows7?数以百万计的商业开发人员都处于这种情况并且无法控制它。

情况会改变吗?如果会,什么时候改变?

展望未来,是否等待 SDK 预览的定期更新,如果是这样,人们如何使用它们?

Windows SDK 的预览版不会安装在 Windows 的非 Insider 版本上。这是 Windows SDK 的限制,并非特定于 C++/WinRT。在较长的 运行 中(一旦 RS4 发布)这将不是问题,因为您将能够安装 RS4 的最终 Windows SDK,而不受此限制。

短期内,您需要 Windows 的 Insider 版本来安装 SDK,但您随后可以使用它来针对 Windows 的早期版本。我不确定它是否适用于 Windows 7,但我认为任何使用 C++/WinRT 的开发人员都不会在 Windows 运行时使用 Windows 7甚至在 Windows 的那个版本上根本不可用。

cppwinrt.exe 编译器还依赖 Windows 10 个 API 来运行。虽然这不是使用 C++/WinRT 构建的代码的依赖项,但它是构建 C++/WinRT 组件的要求。当然,生成的二进制文件可以在旧版本的 Windows 上执行,前提是您以通常的方式处理 light-up,例如延迟加载。