MSVC 2015通用CRT,用于本地部署 [英] MSVC 2015 Universal CRT for app-local deployment

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

问题描述

我们宣布,Universal CRT将是一个可重新分发的DLL,使得应用程序本地部署仍然是可能的。



我安装了Visual Studio 2015快速版和我在SDK目录中找到ucrtbase.dll,但我找不到任何东西。我查看的目录是C:\Program Files(x86)\Microsoft SDKs \Windows Kits\10,但只有Microsoft.UniversalCRT.Debug下的CRT的调试版本。 / p>

我不喜欢从我的系统复制任何DLL,我总是只打包来自Redist目录的文件。所以例如(像以前的MSVC版本一样),我从C:\Program Files(x86)\Microsoft Visual Studio 14.0 \VC\redist\x86\Microsoft.VC140重新分发文件。



有一个包可以下载,包含ucrtbase.dll,或者Visual Studio或SDK更新?

p>

此外,我不确定是否只是ucrtbase.dll将是足够的,因为应用程序似乎链接到stub DLL api - *。dll和I不确定是否需要重新分发。

解决方案

此博文位于 CRT 部分详细描述了所有情况,并有关于应用程序本地部署的大红色更新通知:


,2015:支持通用CRT的App本地部署。要获取用于应用程序本地部署的二进制文件,请安装Windows 10的Windows软件开发工具包(SDK)。二进制文件将安装到C:\Program Files(x86)\Windows Kits \10\Redist \ ucrt。您将需要复制所有的DLL与您的应用程序(请注意,DLL的集合是必要的是不同的Windows版本是不同的,所以您必须包括所有的DLL,以便您的程序运行在所有受支持的Windows版本)



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

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 SDKs\Windows Kits\10", but that only has the debug version of the CRT under "Microsoft.UniversalCRT.Debug".

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.0\VC\redist\x86\Microsoft.VC140.CRT" with x86 builds of my app.

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

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.

解决方案

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:

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\10\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)

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆