Hell'oI've just installed Visual Studio 2017 (enterprise).I opened my project whom I created in Visual Studio 2015. My project uses windows.h library but VS2017 cannot find this library. How to repair this?
The problem occurs when you migrate your C++ project from a more updated visual studio version to a lesser one.To solve the issue simply go to your :Project's properties-->General-->SDK Version [and here unroll to show installed SDK versions so you downgrade to an available version Since the required one seems unavailable hence the error].Once one of the Available SDKs selected, Apply, and go back to your code, and everything gonna get fixed.
This step work for me.1. Open visual studio installer2. at menu "Visual studio comunity 2017" --> click modify3. at desktop development with c++ --> enable windows10 SDK for desktop and windows 8.1 SDK 4. click modify
I've also installed Visual Studio 2017 (community) first with the default composition settings.I opened my project whom I created in Visual Studio 2015. My project uses windows.h library but VS2017 cannot find this library and other problems. At first I install the missing (SDK 10 ... etc.) components. Part of problems is gone, but windows.h still not found. The problem was solved by completely uninstalling VS2017 and then installing with all the options at once.