VS 2017: fatal error RC1015: cannot open include file 'winres.h'
Solution 1
I just also came across this issue. It seems my friend missed to push some VS 2017 meta file to the server. My quick solution is to change the Windows SDK version to match the Windows 10 OS version or below.
You can check your OS version from the cmd tool.
Solution 2
Jeff T. answer is great if you have a single project.
If you have many projects in which you have to change the target Windows SDK (or if you want to make sure they all match), you'll probably prefer to use the Retarget Solution
button found when right clicking on the solution:
Then just select some Windows SDK version that you have installed, and apply it to all (or whatever) projects you need to change:
That list of Windows SDK versions will probably show some that don't really work. You might have to try.
Solution 3
You should install the framework MFC
Comments
-
c00000fd almost 2 years
I just downloaded Visual Studio 2017 and converted my dialog-based C++/MFC project with it (from Visual Studio 2008 SP1.) But then when I go to
Resources
it shows this error:fatal error RC1015: cannot open include file 'winres.h'
And idea how to fix this?
-
Vizor almost 5 yearsI recommend this solution before manually adding a specific location.