Property condition support for VS10 and VS19 toolset in .vcxproj

  • Thread starter Thread starter sudo.code
  • Start date Start date
S

sudo.code

Guest
Hi,

I have couple of project files (.vcxproj) in a solution that I upgraded from Visual Studio 2010 to 2019. Now, we have a requirement to make it backwards compatible in case we compile using Visual Studio 2010. I need to add a Visual Studio version condition around the platform toolset to compile with the respective one. For eg. around this:

<PlatformToolset>v142</PlatformToolset>


and this:


<PlatformToolset>v100</PlatformToolset>

Please advise how to use a VS version condition in .vcxproj ?

Thanks!

Continue reading...
 
Back
Top