Can I set the platform toolset from the command line when building with VS2010's msbuild?

后端 未结 4 417
生来不讨喜
生来不讨喜 2020-12-14 21:27

When I\'m building a VS2010 with msbuild from the command line, can I change the platform toolset to v90 (i.e. Visual Studio 2008 toolchain) from the command line, without e

4条回答
  •  悲&欢浪女
    2020-12-14 22:09

    The PlatformToolset is configured as part of a PropertyGroup for the configuration.

    
      Application
      true
      Unicode
      v90
    
    

    If you want to change toolsets from the command line, you should add a configuration for each toolset (easily done using the IDE) and then call that configuration for the build.

    msbuild %s.vcxproj /t:rebuild /p:configuration=VC90Release,platform=%s

提交回复
热议问题