Cannot compile any CUDA program

I am getting the following error when I run sample programs on vs 2022.
My details:
Windows 11 x64
GTX 1650
i7 9gen
8 gb ram

Severity Code Description Project File Line Suppression State
Error MSB3721 The command C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe -gencode=arch=compute_35,code=\sm_35,compute_35\ -gencode=arch=compute_37,code=\sm_37,compute_37\ -gencode=arch=compute_50,code=\sm_50,compute_50\ -gencode=arch=compute_52,code=\sm_52,compute_52\ -gencode=arch=compute_60,code=\sm_60,compute_60\ -gencode=arch=compute_61,code=\sm_61,compute_61\ -gencode=arch=compute_70,code=\sm_70,compute_70\ -gencode=arch=compute_75,code=\sm_75,compute_75\ -gencode=arch=compute_80,code=\sm_80,compute_80\ -gencode=arch=compute_86,code=\sm_86,compute_86\ --use-local-env -ccbin D:\Program Files\vs\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64 -x cu -I./ -I…/…/…/Common -I./ -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6/include -I…/…/…/Common -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -Xcompiler /wd 4819 --threads 0 -g -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler /EHsc /W3 /nologo /Od /Fdx64/Debug/vc143.pdb /FS /Zi /RTC1 /MTd -o D:\notes\pcap\cuda-samples-master\Samples\0_Introduction\matrixMul\x64\Debug\ D:\notes\pcap\cuda-samples-master\Samples\0_Introduction\matrixMul\ exited with code -1. matrixMul D:\Program Files\vs\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 11.6.targets 790

For MSB 3721 the default console output is insufficient to diagnose the issue:

It’s necessary to see the actual output from the nvcc command invocation. To see this, enable a higher verbosity setting in visual studio. You will need to google for how to do that, it will depend somewhat on the visual studio version you are using.

Alternatively, if you start a Visual Studio command shell, you might be able to just execute that command-line yourself and see what kind of output you get.

Hello, i increased verbosity and got the following output:
Output-Build.txt (527.0 KB)

> 1>        D:\notes\pcap\cuda\New folder\CudaRuntime1\CudaRuntime1>"C:\ProgramData\NVIDIA GPU Computing Toolkit\v11.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "D:\Program Files\vs\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64" -x cu   -I"C:\ProgramData\NVIDIA GPU Computing Toolkit\v11.6\include" -I"C:\ProgramData\NVIDIA GPU Computing Toolkit\v11.6\include"  -G   --keep-dir x64\Debug  -maxrregcount=0  --machine 64 --compile -cudart static  -g  -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc143.pdb /FS /Zi /RTC1 /MDd " -o "D:\notes\pcap\cuda\New folder\CudaRuntime1\CudaRuntime1\x64\Debug\" "D:\notes\pcap\cuda\New folder\CudaRuntime1\CudaRuntime1\"
> 1>        The system cannot find the path specified.

Check you paths.