Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows SDK registry variable not found

Tags:

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.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number."

I have installed Windows SDK, and have tried to reinstall and to repair, and have even tried to enter the registry string key "WindowsSDKDir" to the registry. (HKLM/SOFTWARE/Wow6432Node/Microsoft/Microsoft SDKs/v7.1 with value C:\Program Files\Microsoft SDKs\Windows\v7.1).`

Is it a registry issue, or something else? I've tried searching for those registry keys and re-installing my Windows SDK but neither helped.

like image 772
clashoftornados Avatar asked Mar 05 '14 04:03

clashoftornados


1 Answers

I was trying to get a script to compile for Script Hook V - GTA .NET Library.

I spent about 2 hours trying to figure out why it wouldn't work. Here is how I got it to build:

I right clicked on the project and selected properties:

Step1

Under Configuration Properties -> General -> Platform Toolset

I selected the dropdown and selected the only other one available

(For me it was Visual Studio 2013 - Windows XP (v120_xp))

Platform Toolset

After that I was able to fly my car normally:

Weeee

Hope this helps someone else trying to do the same thing.

like image 109
user1274820 Avatar answered Oct 25 '22 22:10

user1274820