Cuda Samples not working and there is no CUDA toolkit(10.1) option in Visual Studio 2019

Hey i installed visual studio 2019 and cuda toolkit 10.1 just now . But when i run visual studio ther was no option of cuda template . and moreover when i try to run cuda toolkit samples they are also not running in visual studio 2019 . I have nvedia 1050 gpu

copy
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\visual_studio_integration\MSBuildExtensions
to
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations
It will works.

I copied the specified folder to the destination folder, but VS 2019 still doesn’t show any CUDA tools.

Did you mean “copy the contents of C:\Program Files\NVIDIA GPU Computing Toolkit…” ?