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

MSVC 2015 Universal CRT for app-local deployment(用于应用程序本地部署的 MSVC 2015 通用 CRT)

本文介绍了用于应用程序本地部署的 MSVC 2015 通用 CRT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

宣布通用 CRT 将是一个可重新分发的 DLL,因此应用程序本地部署仍然是可能的.

It was announced that the Universal CRT would be a re-distributable DLL such that app-local deployment would still be possible.

我已经安装了 Visual Studio 2015 Express Edition,我在 SDK 目录中寻找 ucrtbase.dll,但我找不到任何东西.我查看的目录是C:Program Files (x86)Microsoft SDKsWindows Kits10",但在Microsoft.UniversalCRT.Debug"下只有 CRT 的调试版本.

I have installed the Visual Studio 2015 Express Edition and I was looking for ucrtbase.dll in the SDK directories, but I could not find anything. The directory that I looked into was "C:Program Files (x86)Microsoft SDKsWindows Kits10", but that only has the debug version of the CRT under "Microsoft.UniversalCRT.Debug".

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

I prefer not to copy any DLLs from my system, I always only package files from the "Redist" directories. So for instance (like with the previous versions of MSVC), I re-distribute files from "C:Program Files (x86)Microsoft Visual Studio 14.0VC edistx86Microsoft.VC140.CRT" with x86 builds of my app.

是否有我可以下载包含 ucrtbase.dll 或 Visual Studio 或 SDK 更新的包?

Is there a package that I can download that contains the ucrtbase.dll, or perhaps a Visual Studio or SDK update?

此外,我现在不确定是否只有 ucrtbase.dll 就足够了,因为应用程序似乎链接到存根 DLL api-*.dll,而且我不确定这些是否需要重新- 也是分布式的.

Also I am not sure at this point whether just the ucrtbase.dll will be sufficient, as the applications seem to be linked to the stub DLLs api-*.dll, and I'm not sure whether those need to be re-distributed as well.

推荐答案

这篇博文在分发使用通用 CRT 的软件 部分中详细描述了所有案例,并附有关于 app-local 的大红色更新通知部署:

This blog post under Distributing Software that uses the Universal CRT section describes all the cases in detail, with a big red update notice concerning app-local deployment:

2015 年 9 月 11 日更新:支持应用本地部署通用 CRT.要获取用于应用本地部署的二进制文件,请安装适用于 Windows 10 的 Windows 软件开发工具包 (SDK).二进制文件将安装到 C:Program Files (x86)Windows Kits10Redistucrt.您将需要使用您的应用程序复制所有 DLL(请注意,不同版本的 Windows 上所需的 DLL 集是不同的,因此您必须包含所有 DLL,以便您的程序在所有受支持的 Windows 版本上运行)

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 Kits10Redistucrt. 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)

这篇关于用于应用程序本地部署的 MSVC 2015 通用 CRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:用于应用程序本地部署的 MSVC 2015 通用 CRT