简体   繁体   English

从VS2013项目转换为VS2015项目之一

[英]Conversion from a VS2013 project to VS2015 one

I had run into a problem when I tried to have a VS2013 project be complied with VS2015. 当我试图让VS2013项目与VS2015兼容时,我遇到了一个问题。 The project is originally compiled with VS2008 and still need some libraries to be complied with newer VS version. 该项目最初是使用VS2008编译的,但仍需要一些库才能与更新的VS版本兼容。

I installed in the order of VS2008 -> VS2015, and the I got a error message 我按VS2008-> VS2015的顺序安装,但收到错误消息

"The build tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found."

According the message and this thread , I additionally installed vc_stdx86.msi and vc_stdamd64.msi from the .iso file. 根据消息和该线程 ,我还从.iso文件安装了vc_stdx86.msi和vc_stdamd64.msi。 Then, the error message changed into 然后,错误消息变为

"Required file "" is missing."

where 哪里

<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"

I have made some search about "ClCompile.PrecompiledHeader" but couldn't get a solution. 我已经搜索了一些有关“ ClCompile.PrecompiledHeader”的信息,但找不到解决方案。 Could anyone suggests what is the missing file and how can I get rid of the error? 任何人都可以建议丢失的文件是什么,如何摆脱错误?

Thanks for your help. 谢谢你的帮助。

Visual Studio 2015 doesn't ship with a platform toolset that old, that's why it fails to compile. 的Visual Studio 2015年不会与平台工具集, 老了,这就是为什么它无法编译出货。

Changing it to the platform toolset of VS2015 (v140) will fix that issue, but you may get some other errors possibly, as there may have been breaking changes in 7 years (I think). 将其更改为VS2015(v140)的平台工具集将解决此问题,但您可能会遇到其他错误,因为7年内可能发生了重大更改(我认为)。

Go to Project -> [Name] Properties -> Configuration Properties -> General and change Platform Toolset to Visual Studio 2015 (v140) . 转到Project -> [Name] Properties -> Configuration Properties -> General然后将Platform Toolset更改为Visual Studio 2015 (v140)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM