Build the Visual C++ 2010 project with "msbuild" and Intel C++ compiler from command line

The Intel® C++ Composer XE for Windows 12.0 and the Intel® Parallel Composer 2011 support "msbuild" for Visual C++ 2010* projects.

The usage and arguments of "msbuild" can be found at Microsoft* website - http://msdn.microsoft.com/en-us/library/ms164311.aspx. Do an online search with "MSBuild Command Line" in case the page moved.

Examples to use "msbuild" to build the Visual C++ 2010 project with Intel C++ compiler 12.x:
  1. Rebuild the active solution configuration for platform toolset=“Intel C++ Compiler XE 12.0”
  2. >> msbuild.exe hello_vs10.sln /t:Rebuild /p:PlatformToolset="Intel C++ Compiler XE 12.0"


    The list of the supported platform toolsets can be found under "[program files]\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets" directory. Each directory name coincides with the appropriate toolset.

  3. Rebuild the "x64|release" configuration for platform toolset=“Intel C++ Compiler XE 12.0”
  4. >> msbuild.exe hello_vs10.sln /t:Rebuild /p:Configuration=Release;Platform=x64 /p:PlatformToolset="Intel C++ Compiler XE 12.0"

     

Refer to this article for using "devenv" to build Visual C++ 2005* or 2008* projects with Intel C++ compilers.

For more complete information about compiler optimizations, see our Optimization Notice.