none
Target Platform Version (SDK)

    Question

  • Hi.

    We  are building our C++ projects using Visual Studio 2013 and Visual Studio 2015 at the same time from the same source tree.

    Is possible to define in .vcxproj file the condition: if we are build with v120 tool use version 8.1, if we are build with v140 use version 10.0.10586.0. Or something like that.

    I found only the way how to change Target Platform Version only using IDE, it modifies .vcxproj file that can not be used with VS 2013, if latest SDK does not installed.

    I tried to use this, but it does not work (probably I add this into wrong tag:

    <PropertyGroup Condition="'$(DefaultPlatformToolset)'=='v140'">
     <WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
    </PropertyGroup>

    Thanks.

       

    Tuesday, July 05, 2016 2:32 PM

Answers

  • Hi Rarik,

    Thank you for your post.

    Firstly, please make sure that your have installed Win 10 sdk 10.0.10586.0 well on your machine.

    Then in the front of PropertyGroup Condition tag, please add the following tag to have a try:

     <PropertyGroup Condition="'$(PlatformToolset)'=='v140'">

        <WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>

      </PropertyGroup>

    Please see the screenshot:

    Pic1:

    Pic2:

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    • Marked as answer by Rarik Wednesday, July 06, 2016 2:22 PM
    Wednesday, July 06, 2016 8:56 AM
    Moderator

All replies

  • Hi Rarik,

    Thank you for your post.

    Firstly, please make sure that your have installed Win 10 sdk 10.0.10586.0 well on your machine.

    Then in the front of PropertyGroup Condition tag, please add the following tag to have a try:

     <PropertyGroup Condition="'$(PlatformToolset)'=='v140'">

        <WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>

      </PropertyGroup>

    Please see the screenshot:

    Pic1:

    Pic2:

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    • Marked as answer by Rarik Wednesday, July 06, 2016 2:22 PM
    Wednesday, July 06, 2016 8:56 AM
    Moderator
  • Thanks. It works perfectly.
    Wednesday, July 06, 2016 2:22 PM
  • Hi Rarik,

    Glad to hear you have had your issue resolved. And thanks for sharing us your result here.

    Have a nice day:)

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Thursday, July 07, 2016 1:06 AM
    Moderator