none
Build tools Error while opening A C++ project Built With 2010 in VS 2015

    Question

  • Hi All,

    We have a C++ Project ( A project for developing .arx files for AutoCad ) built with VS 2010. We first opened the project in VS 2015 we got "The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools." error.

    So we opened it in VS 2012. We did not get any build tools error. Then we opened the project built with VS 2012 in VS 2013. Still no Build Tools error. Properties -> General -> Platform toolset after opening in VS 2013 was set to Visual Studio 2013(v120). 

    Now we opened this project in VS 2015. Properties -> General -> Platform toolset is set to Visual Studio 2015 (v140). But when we do a build we are getting the Build tools for v140... error.

    In the solution we have 3 Projects Namely engr, Nimcad and planact. 

    Initial Load of the Project Gives this :

    In the initial project load itself for Nimcad and planact we are getting build tools error. But not for engr.

    Buid on Nimcad Project :->

    Build on Planact Project :->

     

    For both Nimcad and planact all we get is build tools error.

    Property Pages :


    We need to recompile this project in VS 2015 so that AutoCad 2018 can load them. But as we are getting build tools error we are not able to move further.

    We created a empty c++ console project and wrote a simple Hello World Program. It got executed. Also the engr project does not give build tools error. Even the TargetPlatformVersion in engr project is set to 8.1.

    Can anybody help us out to figure why in a solution one c++ project is not throwing Build Tools error and the other two does. Please.

    Thanks in Advance

    Abhilash D K

    Thursday, April 06, 2017 12:52 PM

Answers

  • Hi Abhilash D K,

    Welcome to the MSDN forum.

    >> Now we opened this project in VS 2015. Properties -> General -> Platform toolset is set to Visual Studio 2015 (v140). But when we do a build we are getting the Build tools for v140... error.

    Did you directly open this project with VS 2010 in VS 2015 or use the project that you already upgraded in VS 2013? To open in VS 2015, please have a look at this: How to: Upgrade Visual C++ Projects to Visual Studio 2015

    Refer to the build error message of Nimcad/Planact Project, you need to upgrade to the current Visual Studio tools by selecting the Project menu or right click the solution and choose ‘Retarget solution’.

    Since this simple Hello program can successfully build without any error, which means this issue is more relates to your projects. If the above methods not work, please try to backup this solution and create an empty C++ project to add those files one by one to recreate the solution or troubleshot this issue.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Abhilash D K Friday, April 07, 2017 8:20 AM
    Friday, April 07, 2017 7:00 AM
    Moderator

All replies

  • Hi Abhilash D K,

    Welcome to the MSDN forum.

    >> Now we opened this project in VS 2015. Properties -> General -> Platform toolset is set to Visual Studio 2015 (v140). But when we do a build we are getting the Build tools for v140... error.

    Did you directly open this project with VS 2010 in VS 2015 or use the project that you already upgraded in VS 2013? To open in VS 2015, please have a look at this: How to: Upgrade Visual C++ Projects to Visual Studio 2015

    Refer to the build error message of Nimcad/Planact Project, you need to upgrade to the current Visual Studio tools by selecting the Project menu or right click the solution and choose ‘Retarget solution’.

    Since this simple Hello program can successfully build without any error, which means this issue is more relates to your projects. If the above methods not work, please try to backup this solution and create an empty C++ project to add those files one by one to recreate the solution or troubleshot this issue.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Abhilash D K Friday, April 07, 2017 8:20 AM
    Friday, April 07, 2017 7:00 AM
    Moderator
  • Hi Sara,

    We tried to open the VS 2010 project in VS 2015. It gave build tools error. Then we opened in VS 2012 Built it. Then opened it in VS 2013 Built it. Then we opened in VS 2015. Still same build tools error.

    And we are not getting Retarget Solution option when right clicking on Solution. So our best bet is to create a brand new C++ solution and copy all the files to the new solution right?

    Thanks and Regards,

    Abhilash D K 

    Friday, April 07, 2017 8:23 AM
  • Hi Abhilash D K,

    Thank you for your confirmation.

    When you right click the project name under Solution Explorer, do you find any option like 'Retarget SDK Version' or 'Upgrade xxx'? If you can find it, please have a try.

    If this issue persists, you can try to create a new empty C++ solution with the template type that you require, then copy all files to recreate this solution.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 07, 2017 8:33 AM
    Moderator
  • Hi Sara,

    We do find Retarget Solution. But even that is only finding engr project not the other two. Please refer the image below :

    When we right click on Nimcad or Planact projects we get neither Retarget SDK nor Upgrade XXX. We would better create a new blank solution and add the projects with required templates.

    Thanks and Regards,

    Abhilash D K

    Friday, April 07, 2017 9:52 AM
  • Hi Abhilash D K,

    Like you said, please use the new blank solution to recreate the whole solution, and if you meet any other issue, please feel free to let me know :)

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, April 10, 2017 9:15 AM
    Moderator