在 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

弗兰克