尝试构建我的CUDA程序时出错MSB4062 [英] Error MSB4062 when trying to build my CUDA program

查看:1684
本文介绍了尝试构建我的CUDA程序时出错MSB4062的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试构建我的第一个GPU程序时,我得到以下错误。任何建议可能会出错?


错误1错误MSB4062:Nvda.Build.CudaTasks.SanitizePaths任务
无法从程序集加载C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\Nvda.Build.CudaTasks.dll。
无法加载文件或程序集file:/// C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\Nvda.Build.CudaTasks。 dll'
或它的一个依赖项。该系统找不到指定的文件。
确认声明是正确的,程序集
及其所有依赖都可用,并且任务包含
实现
的公共类。Microsoft.Build.Framework.ITask 。 C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA
3.2.targets 70 4 gpu



解决方案

我遇到了这个问题。这么多的互联网搜索,但我找不到任何东西。最后,我意识到我在控制面板的Windows功能部分关闭了Microsoft .NET Framework 3.5.1功能。



打开Microsoft .Net Framework 3.5.1可以轻松按照这些说明操作;



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



我希望这个解决方案会帮助你!


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

解决方案

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 !

这篇关于尝试构建我的CUDA程序时出错MSB4062的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆