gpt4 book ai didi

cuda - 尝试构建我的 CUDA 程序时出现错误 MSB4062

转载 作者:行者123 更新时间:2023-12-04 23:06:13 26 4
gpt4 key购买 nike

当我尝试构建我的第一个 GPU 程序时出现以下错误。有什么建议可能会出错吗?

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

最佳答案

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

要打开 Microsoft .Net Framework 3.5.1,您可以轻松地按照这些说明进行操作;

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

我希望这个解决方案能帮到你!

关于cuda - 尝试构建我的 CUDA 程序时出现错误 MSB4062,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11506220/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com