I\'ve been getting this error ever since I installed the .NET Framework SDK for 64-bit programming on my Visual C++ 2010 Express compiler. I can\'t compile even a simple pro
I had a differnt problem on Windows 10 with Visual Studio 2017 but with the same effects. I think my problems came down to VS being installed onto a drive other than "C:\". I solved the problem by Reinstalling Windows 10 SDK
First I had to uninstall the Windows SDK (there were two versions installed). Then ran the executable. Once installed, ran visual studio and it worked fine.
I just met and solved this problem by myself. My problem is a little different. I'm using visual studio on Windows 10. When I create the project, the Target Platform Version
was automatically set to 10.0.15063.0
. But there is no kernel32.lib
for this version of SDK, neither are other necessary header files and lib files. So I modified the Target Platform Version
to 8.1
. And it worked.
Environment:
Solution:
Property Page
;General
page;Target Platform Version
to the desired target platform (e.g. 8.1
).Make sure you have in VC++ directories (Right click project, Click Property Page),
Change the platform toolset to: "Windows7.1SDK" under project properties->configuration properties->general
OS : Win10, Visual Studio 2015
Solution : Go to control panel ---> uninstall program ---MSvisual studio ----> change ---->organize = repair
and repair it. Note that you must connect to internet until repairing finish.
Good luck.
gero's solution worked for me.
In Visual Studios 2012, take the following steps.
- Go to Solution Explorer
- Right click on your project
- Go to Properties
- Configuration Properties -> General
- Platform Toolset -> change to Windows7.1SDK