Error MSB4062 when trying to create my CUDA program

I get the following error when I try to create my first GPU program. Any suggestions what could be wrong?

Error 1 error MSB4062: task "Nvda.Build.CudaTasks.SanitizePaths" could not be loaded from the assembly C: \ Program Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ BuildCustomizations \ Nvda.Build.CudaTasks.dll. Could not load file or assembly: /// C: \ Program Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ BuildCustomizations \ Nvda.Build.CudaTasks.dll "or one of its dependencies. The system cannot find the file. Make sure that the declaration is true that the assembly and all its dependencies are accessible, and that the task contains an open class that implements Microsoft.Build.Framework.ITask. C: \ Program Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ BuildCustomizations \ CUDA 3.2 .targets 70 4 gpu

+4
source share
3 answers

I ran into this problem. So many searches on the Internet, but I could not find anything. Finally, I found out that I had closed the features of Microsoft.NET Framework 3.5.1 in the "Windows Features" section of the control panel.

To enable Microsoft.Net Framework 3.5.1, you can easily follow these instructions;

http://www.sevenforums.com/tutorials/5023-windows-features-turn-off.html

I hope this solution helps you!

+5
source

I ran into this problem after upgrading my system to Windows 10. It turns out I need to reinstall Visual Studio because some dependent dlls have been moved to the Windows.old folder.

+3
source

I had the same error while compiling on a remote server. I think this happened because I logged in using Remote Desktop (RDP). When I logged in using VNC and compiled, the error no longer ran.

Please note that it is not possible to install the CUDA Toolkit through RDP, so this is unlikely to happen if you do not use both methods to connect to the server.

+1
source

All Articles