我的visual c ++ 2015被visual c ++ 2017取代了 [英] my visual c++ 2015 got replaced by visual c++ 2017

查看:816
本文介绍了我的visual c ++ 2015被visual c ++ 2017取代了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,当我安装visual c ++ 2015 redistributable时是正常的,然后当我安装visual c ++ 2017 redistributable时,错过了2015版本

hello, is that normal when I install visual c++ 2015 redistributable and then when I install visual c++ 2017 redistributable, the 2015 version is missed

推荐答案

如果您还查看可再发行组件中的文件列表,那么很明显它发生的原因。

If you also look at the list of files in the redistributable then it is obvious why it happens.

与2015年重新分配的文件是:

The files redistributed with 2015 are:

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1395784">

使用2017更新9重新分发的文件是:

The files redistributed with 2017 update 9 are:

重新分发的文件与2019预览2是:

The files redistributed with 2019 preview 2 are:

看看它们都有相同的名称?

See how they all have the same names?

现在还记得一个文件不允许与同一目录中的另一个文件同名吗?因此,最多可以安装一个版本的运行时。

Now remember how a file is not allowed to have the same name as another file in the same directory? So at most one version of the runtime is able to be installed.

这最初是在
博客文章
,以及
Visual Studio 2019公告
博文发布后,他们宣布Visual Studio 2019也将二进制兼容。如第一篇博文中所述:

This was originally announced in this blog post, and in the Visual Studio 2019 announcement blog post, they announced that Visual Studio 2019 will also be binary compatible. As stated in the first blog post:

" 使用MSVC v141工具集构建的任何二进制文件都将链接到140版本的VC Runtime。 VCRedist仅向后兼容,因此您需要使用您的应用重新分发VS 2017中提供的最新VCRedist 140. "

"Any binaries built with MSVC v141 toolset will link against the 140 version of the VC Runtime. The VCRedist is only backward compatible, so you will need to redistribute the latest VCRedist 140 available in VS 2017 with your app."

所以这意味着您不仅要安装最新版本的运行时,如果您安装较旧版本并尝试使用使用较新编译器构建的应用程序,则无法保证其正常工作。

So this means not only should you install the latest version of the runtime, if you install an older version and try to use an application built with a newer compiler, it isn't guaranteed to work.

另外,有趣的是, Visual Studio 2019预览2可再发行组件仍然将自身标识为Visual Studio 2017可再发行组件,这可能很有趣。

As an interesting aside, the Visual Studio 2019 preview 2 redistributable still identifies itself as a Visual Studio 2017 redistributable, that could be fun.


这篇关于我的visual c ++ 2015被visual c ++ 2017取代了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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