如何在Visual Studio 2017上使用VS2008(v90)平台工具集? [英] How to use VS2008(v90) Platform toolset on Visual Studio 2017?

查看:996
本文介绍了如何在Visual Studio 2017上使用VS2008(v90)平台工具集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我正在使用一个使用Visual Studio 2008工具集构建的非常古老的项目。

I'm working with a very old project which was built with Visual Studio 2008 toolset.

我想升级我的Visual Studio 2017项目。所以我已经做了所有必要的修改来分别构建所有子项目。它奏效了。但是当我尝试构建整个项目时,在链接时,它表明,一些库使用较旧的工具集编译
。我没有该库的源代码。所以我放弃了升级VS2017代码的希望。 (你能在这帮我吗?)

I wanted to upgrade my project for Visual Studio 2017. So I have made all the necessary modifications to build all the sub projects separately. And it worked. But when I tried to build the whole project, while linking, it shows that, some libraries are compiled with older toolset. And I don't have the source code of that library. So I have abandoned the hope for upgrading my code for VS2017. (Can you help me here?)

我已经在我的电脑上使用VS2008成功构建了这个项目。现在我想使用VS2008工具集从VS2017构建这个项目。因为VS2017提供了更酷的功能。我已经完成了这个(https://devblogs.microsoft.com/cppblog/stuck-on-an-older-toolset-version-move-to-visual-studio-2015-without-upgrading-your-toolset/)  ;指南。
但无法找到任何选项来选择   平台工具集:VS2008(v90) 

I have successfully built the project using VS2008 on my PC. Now I want to build this project from VS2017 using VS2008 toolset. Because VS2017 offers much cooler features. I have gone through this (https://devblogs.microsoft.com/cppblog/stuck-on-an-older-toolset-version-move-to-visual-studio-2015-without-upgrading-your-toolset/) guide. But couldn't find any options to select  Platform Toolset: VS2008 (v90) 

如何在我的VS2017上启用此选项?

How to enable this option on my VS2017?

谢谢。

推荐答案

您是否在同一系统上安装了Visual Studio 2010?

Did you install Visual Studio 2010 on that same system?

您链接到状态的帖子:

" 首先,除了安装VS 2017之外,您还需要在与VS 2008相同的计算机上安装VS 2010.这可确保启用针对VS 2008的相应MSBuild脚本安装(它们只与VS 2010一起提供)。"

"First, in addition to installing VS 2017 you also need to install VS 2010 on the same machine with your VS 2008. This ensures that the appropriate MSBuild scripts that enable targeting VS 2008 are installed (they only ship with VS 2010)."

所以你需要安装3个版本的Visual Studio。

So you need 3 versions of Visual Studio installed.

但是当我尝试构建整个项目时,在链接时,它表明,一些库是使用较旧的工具集编译的。我没有该库的源代码。所以我放弃了升级VS2017代码的希望。 (你能在这里用
帮我吗?)
But when I tried to build the whole project, while linking, it shows that, some libraries are compiled with older toolset. And I don't have the source code of that library. So I have abandoned the hope for upgrading my code for VS2017. (Can you help me here?)

这完全取决于它们是静态库还是动态库。如果它们是静态库,那么最重要的是它有多复杂?它是否使用C ++功能,STL甚至是CRT?如果确实如此,那么在过去的10年中,b b $ b的变化很可能会导致问题。已经有很多STL类布局更改,C ++语言功能已经改变,甚至CRT也经历了重大改写。所以如果这是真的那么你可能需要重建
它。

This depends entirely on if they are static libraries or dynamic libraries. If they are static libraries then the biggest thing is how complex is it? Does it use C++ features, the STL even the CRT? If it does then there is a very real chance of something changing in the last 10 years that will cause problems. There have been a lot of STL class layout changes, C++ language features have changed and even the CRT has undergone a major rewrite. So if this is true then you are likely going to need to rebuild it.

如果它是一个动态库,它被隔离到它自己的二进制文件中,所以它只取决于它如果你跨越边界传递C ++对象。

If it is a dynamic library, it is isolated into it's own binary, so it only depends on if you pass C++ objects across the boundary.


这篇关于如何在Visual Studio 2017上使用VS2008(v90)平台工具集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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