CUDA Samples 10.1 failing build with error The Windows SDK version 10.0.15063.0 was not found.

I am trying to build the CUDA 10.1 samples in VS2017 + Windows10 Home .

I have Retargeted the solution to 10.0.17763.0

But still, it gives the same error again and again “The Windows SDK version 10.0.15063.0 was not found”

How do I get around this ?

I got the same error today. After edit the file “nbody_vs2017.vcxproj”. Do not open it with VS, using another editor such as sublime. Replace the string 10.0.15063.0 with my installed version. It works now.

This can be set through the IDE in the project’s Configuration Properties, General section. There is a drop-down menu with the available options.