I have some code that I could compile just fine on a system with VS2013 (and VS2015). However, the same code does not compile on a system with just VS2015. One of the errors is that it can't find windows.h.
Cannot open include file: 'Windows.h': No such file or directory
It seems that in VS2015 "VC++ Directories" (in the project properties) points to invalid directories. I am saying this because on both systems, i.e. the one with VS2013 and the one with VS2015 I see windows.h in the same 4 directories as listed below. I would have expected additional/different directories for the system with VS2015. But on the system with VS2015 none of the "VC++ Directories" points to any of those 4 directories where windows.h is located.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
C:\Program Files (x86)\Microsoft Kits\8.1\Include\um
C:\Program Files (x86)\Microsoft Phone Kits\8.1\Include
C:\Program Files (x86)\Microsoft Phone Silverlight Kits\8.1\Include
Some people recommended to just manually add the include directory but that can't be the solution. That's a workaround that eventually will break. Another solution I saw is to add SDK 10 during the installation but I don't see that option in VS2015 Prof. Does that mean I have to manually install SDK 10? That doesn't seem to make any sense. Any help is appreciated.