用于应用程序本地部署的 MSVC 2015 通用 CRT

MSVC 2015 Universal CRT for app-local deployment

已宣布通用 CRT 将是一个可重新分发的 DLL,这样应用程序本地部署仍然是可能的。

我已经安装了 Visual Studio 2015 Express Edition,我在 SDK 目录中寻找 ucrtbase.dll,但找不到任何东西。我查看的目录是 "C:\Program Files (x86)\Microsoft SDKs\Windows Kits",但只有 "Microsoft.UniversalCRT.Debug".

下的 CRT 调试版本

我不想从我的系统中复制任何 DLL,我总是只打包 "Redist" 目录中的文件。因此,例如(与以前版本的 MSVC 一样),我使用我的应用程序的 x86 版本从 "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT" 重新分发文件。

我可以下载包含 ucrtbase.dll 或 Visual Studio 或 SDK 更新的软件包吗?

另外我现在不确定 ucrtbase.dll 是否足够,因为应用程序似乎链接到存根 DLL api-*.dll,我不确定这些是否也需要重新分发。

This blog post 分发使用通用 CRT 的软件 部分详细描述了所有情况,并带有关于应用程序本地部署的大红色更新通知:

Updated September 11, 2015: App-local deployment of the Universal CRT is supported. To obtain the binaries for app-local deployment, install the Windows Software Development Kit (SDK) for Windows 10. The binaries will be installed to C:\Program Files (x86)\Windows Kits\Redist\ucrt. You will need to copy all of the DLLs with your app (note that the set of DLLs are necessary is different on different versions of Windows, so you must include all of the DLLs in order for your program to run on all supported versions of Windows)

您可以从 Microsoft Donwload Center 下载 UCRT。 UCRT 现在是 OS 的一部分,对于 Vista SP2/7/8/8.1,它由更新中心分发。