CUDA 10.1 and Intellisense

Using Visual Studio Community Edition 15.9.11 (new install).

If I create a new project of type CUDA 10.1 (CUDA 10.1 Runtime) I get the usual file created.

This all compiles fine, however Intellisense complains that it cannot open stdio.h (line 5 of

Attempting to open the document stdio.h produces the dialog that says:

File ‘stdio.h’ not found in current source file’s directory or in build system paths.

The path it is using is (among others)

C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

But this project targets C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0

The VS2017 samples do not exhibit this neither does my previous project. Only a new project.

Can anyone advise what is wrong here?

I fixed it by

Make sure you have all these paths under VC++ directories->Include Directories: