Windows SDK registry variable not found

后端 未结 11 1069
闹比i
闹比i 2020-12-14 01:42

I cannot build my project in Visual Studio 2012. The error is:

1>C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V110\\Microsoft.CppBuild.targe

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 02:18

    Adding my observations of a similar problem reporting the same error....

    If the required SDKs are installed, but the problem persists, try toggling the Platform Toolset under the project's General configuration properties. For example, I changed Visual Studio 2013 (v120) to Visual Studio 2015 (v140). After applying, I reverted the Platform Toolset back to Visual Studio 2013 (v120) which corrected the problem of the missing WindowsSDKDir setting.

    On another workstation where the project works, VS2012 is installed. The new workstation without VS2012 complains about the missing WindowsSDKDir setting; although, the Platform Toolset parameter displays Visual Studio 2013 (v120)

提交回复
热议问题