Windows SDK registry variable not found

后端 未结 11 1012
闹比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:17

    As Parvez pointed, New C++ project, then "Install Windows XP support for C++"

    0 讨论(0)
  • 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)

    0 讨论(0)
  • 2020-12-14 02:20

    For myself works this:

    Check the value in "your".vcxproj <PlatformToolset>"some version"</PlatformToolset>

    I know it is strange but:

    I have installed VC2012 and VC2010 and I compile project from 2012 in 2010 with toolset "v110".

    0 讨论(0)
  • 2020-12-14 02:30

    Try to invoke SetEnv.cmd manually in your command prompt:

    call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x86
    

    OR

    call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x64
    
    0 讨论(0)
  • 2020-12-14 02:33

    Installing Windows SDK v8.1 solved it for me.

    0 讨论(0)
提交回复
热议问题