I'm trying to build project c++ on vs2017 but there error appear: "The build tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found " after navigation, I must download VS 2008 I have installed it, but problem still exist . any Suggestion ?
The projects are targeting the v90
platform toolset. The solution is to either open the .sln
file with VS2008 (ie use the right tool), or spend some time updating the projects to target the latest platform toolset (ie VS2017). To do that, just right click each project, and go to Properties
, then look at General
| Windows SDK Version
. You may have to fix compilation / linker errors following the project upgrade.
You need:
MsBuild 4.0 toolset configuration files for the above toolchain. (These are the directories c:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\<arch>\\PlatformToolsets\\v90\\
with .props
and .targets
files in them)
<GRMSDK_EN_DVD.iso>\\Setup\\vc_stdx86\\vc_stdx86.msi
directly. Despite the name, it has toolset files for all 3 platforms.)
"Visual C++ Compiler for Python 2.7" package is not supported by these toolset configuration files. So if you use it, you'll need to either manually specify its location in one of registry values specified in .props
, or modify .props
to also look in HKLM\\Software\\Microsoft\\DevDiv\\VCForPython
.
It is possible to upgrade the project file from the command line without opening it in Visual Studio. I was running into the same issue, and found another solution in the Microsoft documentation for Visual Studio ( https://docs.microsoft.com/en-us/visualstudio/ide/reference/upgrade-devenv-exe?view=vs-2017 ).
Here are the steps:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.