ITQuants blog

How to compile with VS2005 using the VS2010 IDE?

Mar 21

Written by:
3/21/2012 3:53 PM  RssIcon

This is possible with the Platform toolset available on the General tab of the project configuration. By default, you can target either VS2010 (platform target v10) or VS2008 (platform target v9).

The platform toolset selection is available as follow:



For using VS2005 as compiler, there are some steps to respect:

- the VS2005 and VS2010 development environments have to be installed on the same machine. If VS2010 was only installed, Visual Studio 2005 should be installed too.

- the configuration (2 files, .props and .targets) for VS 2005 has to be added in the MSBuild folder for each environment (x86, x64,...) target.

- once installed, the selection vc80 has to be chosen in the field platform toolset in the General tab of the propject configuration.


The configuration files Microsoft.Cpp.Win32.v80.props and Microsoft.Cpp.Win32.v80.targets have to installed in a folder to create: C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\v80 (C:\Program Files could be replaced by the root folder of VS2010 installation).

The configuration files Microsoft.Cpp.X64.v80.props and Microsoft.Cpp.x64.v80.targets have to be installed in a folder to create: C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\v80.

According to the article C++ Native Multi-Targeting written by Li Shao, the content of the Win32 (x86) .props file looks like:

For x64 platform, the content of the .props and .targets file looks like:


We can choose the vc80 in the platform selection, compile and debug using the .Net v2.0 and MFC version provided by VS2005 using the VS2010 IDE and the tools provided with this GUI interface.

For example, we can perform a performance analysis without problem:



3 comment(s) so far...


Daffodil platform toolsets

The solution presented here does not work with any of the VS 2005 build tools that require ANSI response files and does not account for changes in command line arguments between build tool versions. Daffodil installs a complete set of platform toolsets along with the needed infrastructure:

By Owen Wengerd on   4/5/2012 5:24 PM

Re: How to compile with VS2005 using the VS2010 IDE?

Thank you very much for the good explanation, it seems very useful, but unfortunately it is not possible to download the files.


By Alejandro Marquez on   5/23/2012 8:31 AM

Re: How to compile with VS2005 using the VS2010 IDE?

Concerning the downloads of files, this was due to a problem of rights, resolved now. Concerning the problem mentioned by Owen Wengerd, I'm quite surprised, since I'm using the Not Set caracter set (equivalent to ANSI) in the General C++ tab settings. MS STL like vector and string are used too in my developments.

By Ph. Bonneau on   10/11/2012 5:02 PM

Search blog