question

BoncekJohn-9525 avatar image
0 Votes"
BoncekJohn-9525 asked BoncekJohn-9525 commented

VS 2013 – build macros out of sync

I reinstalled VS 2013 and now it is impossible to build a project that built fine previously, with errors like

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(362,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>TRACKER : error TRK0005: Failed to locate: "midl.exe". The system cannot find the file specified.

We have found what may be causing this – some of the build macros now show the wrong path for the Windows SDK or none at all:

126378-capture.png:

SDKs are installed under C:\Program Files (x86)\Windows Kits where they have been right along. How can I correct this?

vs-msbuild
capture.png (26.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
1 Vote"
AnnaXiu-MSFT answered BoncekJohn-9525 commented

Hi @BoncekJohn-9525 ,

Welcome to Microsoft Q&A!

Please install the Visual Studio 2013 with Update 5 and go to Project Properties > Configuration Properties > General > Platform Toolset > change it to Visual Studio 2013 (v120) or Visual Studio 2013 - Windows XP (v120_xp).

Meanwhile, you can try to repair your Visual Studio 2013 by opening your Control Panel > Uninstall or change a program > search “Microsoft Visual Studio 2013” > right-click on “Change” > Repair.

Sincerely,
Anna


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.












· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Installing VS 2013 Update 5 fixed all the problems I was having. Thank you.

0 Votes 0 ·