Visual Studio 2013 with the v90 Platform Toolkit

I am trying to build a v90 C ++ platform project in Visual Studio 2013 that has a default platform of v120. The project has some older .dll problems and does not work if it is not compiled with v90, so I can not update it.

On my desktop computer for this, I simply select v90 as the platform and click build.

Recently, I needed to do this on my laptop, on which it did not have any VS presets. When installing windows and VS2013 again, I get the following error when trying to build a v90 platform project:

Code: 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(43,5): error MSB8020: The builds tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found. To build using the v90 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2008 to build using the Visual Studio 2008 build tools. 

I installed both versions of VS2008 Express and Professional, and the error did not change. Something that I was doing on my desktop machine at some point in time made this task trivial, but I'm not sure what I installed / did to make it work from a new windows installation.

Is there something I am missing? What do I need to do to get VS2013 to recognize the v90 platform after installing VS2008?

Thanks in advance!

--- SOLVED ---

I solved the problem of installing VS2008, VS2010 and VS2012. VS2013 now recognizes the v90 platform toolkit.

+6
source share
2 answers

Hint for an online archive.

To use the v90 toolkit for the platform (= Visual Studio 2008) in the new Visual Studio (I am testing 2013 and 2015), you need to additionally install Visual Studio 2008 and Visual Studio 2010 (possibly after installing VS2008), since the definition of the vs90 platform toolkit is The MS Build program folder is part of Visual Studio 2010, not part of Visual Studio 2008, and not part of Visual Studio 2013.

The first answer to installing the entire version of Visual Studio is fine, and the answers to reinstalling Visual Studio 2013 or installing Visual 2013 after Visual 2008 will not work.

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets for v90 and v100 (both installed by Visual Studio 2010)

 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0 

for V110 V120 and V140 (installed by the corresponding version of Visual Studio)

representing Visual Studio versions: v90 = 2008, v100 = 2010, V110 = 2012, V120 = 2013, V140 = 2015.

Immediately after installing VS2008 and VS2010, the new version of Visual Studio 2013 + 2015 can use the platform tools vs90 and vs100. There is no need to reinstall Visual Studio 2013/2015.

+4
source

Install VS2008 before VS2013, as Hans Passant offers.

0
source

Source: https://habr.com/ru/post/970757/


All Articles