微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 Nuget 包更新后找不到 vs2019 'SharpDX.Toolkit.Compiler'

如何解决在 Nuget 包更新后找不到 vs2019 'SharpDX.Toolkit.Compiler'

我有一个从 2016 年开始使用的旧 WPF/HelixToolkit/SharpDX 项目。我遇到了一些视口问题,并认为可以通过更新 HelixToolkit 和 SharpDX 包来解决这些问题。不幸的是,更新后我的项目将不再编译。

我尝试了 Build->Clean 和 Rebuild All,但没有任何乐趣。仍然收到这些错误

Severity    Code    Description Project File    Line    Suppression State
Error       The "SharpDX.Toolkit.EffectCompilerTask" task Could not be loaded from the assembly \SharpDX.Toolkit.CompilerTask.dll. Could not load file or assembly 'file:///C:\SharpDX.Toolkit.CompilerTask.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> 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.   MyWPFMagViewer2 

Severity    Code    Description Project File    Line    Suppression State
Warning     The referenced component 'SharpDX.Toolkit.Compiler' Could not be found. MyWPFMagViewer2         

我真的希望它很简单,但我不知道它可能是什么。有人可以帮忙吗?

TIA,

弗兰克

解决方法

我从来没有找到这个问题的答案,但我能够通过从 GitHub 重新克隆我的项目来解决它,并且更新 SharpDX

弗兰克

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。