Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error MSB4062 when trying to build my CUDA program

Tags:

cuda

I get the following error when I try to build my first GPU Program. Any suggestions what might be going wrong?

Error 1 error MSB4062: The "Nvda.Build.CudaTasks.SanitizePaths" task 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 'file:///C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\Nvda.Build.CudaTasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 3.2.targets 70 4 gpu

like image 617
jomizu Avatar asked Jan 16 '23 02:01

jomizu


1 Answers

I have faced with this problem. So many searching on internet but I could not find anything. At last I recognize that I closed Microsoft .NET Framework 3.5.1 features on Windows Features section in Control Panel.

to turn on 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 will help you !

like image 192
Kaan Erkoç Avatar answered Jan 21 '23 12:01

Kaan Erkoç