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.
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:
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))
After that I was able to fly my car normally:
Hope this helps someone else trying to do the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With