Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

c++ - Windows SDK registry variable not found

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

1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.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 FilesMicrosoft SDKsWindowsv7.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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...