Windows SDK registry variable not found

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

    I was getting the error mentioned below when I was trying to install oracle driver for nodejs using npm install oracledb. I have Windows 7.1 SP1 and I have installed Visual Studio 2015 community edition.

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.

    Installing VC++ compiler as mentioned here resolved the issue for me. For reference here is the action to do.

    You need to launch Visual studio, then do: file > new > project, in the window than opened, select "Model > Visual C++" and in the middle of the window you should see a button "install microsoft C++" or something like that, click on it and it will launch the install process for the C++ & Microsoft SDK. Once that's done it will work as expected !

提交回复
热议问题