Not able to compile VC12 project in VS2013 and VS2017

Ashoka K 1 Reputation point
2021-07-28T16:22:59.343+00:00

Hi,

I have a Visual studio Professional 2012 project but VS Professional 2013 is installed. VS-2012 is not available.
When I compile these projects using VS-Prof-2013, I get the build-tools-set missing error.

Error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets

I tried to follow few threads on this forum but none helped to solve the issue.

  1. Installed VS-Prof-2017 with build-tool v141. Compiling with this generated even more errors about missing C/C++ headers along with v141

"Error C1083 Cannot open include file: 'time.h': No such file or directory"

  1. Used VS-Prof-2013 with tool set v120, but got same error - v141 is missing. I have set the Platform toolset to "v120" which exists on system.

Currently I have v120, v120_xp, and v141 toolset installed.
Please guide me on how to proceed to compile VC12 project files.

Regards,
Ashoka

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,042 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,168 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
    2021-07-29T09:53:28.44+00:00

    Hi Ashoka,

    Welcome to Microsoft Q&A forum.

    It is a little weird, as for VS Professional 2013, the error message mentioned v141, instead of v120 or v110.

    Anyway, please also select the newer version of Windows SDK in project’s property page > Configuration Properties > General > Windows SDK Version(the windows sdk can be installed from VS Installer > Modify > Individual Components), and make sure that you have selected Visual Studio 2017(v141) in project’s property page.

    Besides, please right-click your project > Unload Project > right-click it again > Edit … then in .XXproj file, make sure that the <PlatformToolset> property has been set to v141.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.