I tried in VS 2015 with cuda 9.1 and getting the same error MSB3721.
I am working with openGL and Cuda for the cloth simulation.
I am trying to build the code in the Debug mode.
My code is working fine with the VS2010 and cuda 4.2, when i am updating my project with the VS 2013 cuda 6.5 with graphics card NVIDIA GeDorce GTX 970 then i am getting the above error.
Same error i am getting with Different Graphics Quadro M1200 VS15 and cuda 9.1.
I am updating the VS2015 , i will check the sample application after done.
I tried the sample application SimpleGl (C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5\2_Graphics\simpleGL) and its compile and running.
Last time i tried the sample nbody (C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.1\5_Simulations\nbody) in VS 205 and cuda 9.1 and that was running without any problem.
when i am running my code in VS 2013 with 2010 platform in Release mode its running.
changing the platform with Visual Studio 2013 (v120) getting the MSB3721 issue.
I solved the Nsight debugger issue with the Cuda project.
I Identify the Cuda version that you are using, Installed the Cuda toolkit with custom install and choose the driver that comes with the Toolkit, this removes the pre-installed drivers.
Now go to the Nsight site
[url]NVIDIA GameWorks Documentation
and choose that version of the nsight which support the installed graphics driver , This works for me in my both the projects: one with Cuda 7.5 in which i used the driver 353.90 and Nsight 4.7 with Visual Studi0 2010,
second project with the Cuda 8 and the driver version 377.55 and Nsight 5.2 with Visual Studi0 2013.