当我构建一个测试项目(我们称之为PWTests)时,我收到了以下警告:
警告CS1684:对类型“System.Windows.Input.ICommand”的引用声称它在“c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.dll”中定义,但找不到它。
该项目旨在测试一个类库(我们称之为PW)。我无法确定为什么它认为System.Windows.Input.ICommand是在System.dll中定义的。实际上定义ICommand的PresentationCore已经在测试项目和类库项目中正确引用。我尝试删除对PresentationCore的引用,并进行清理和重新添加(如其他问题所述),但未能解决问题。
我该如何确定是什么导致它认为ICommand在System.dll中?
警告CS1684:对类型“System.Windows.Input.ICommand”的引用声称它在“c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.dll”中定义,但找不到它。
该项目旨在测试一个类库(我们称之为PW)。我无法确定为什么它认为System.Windows.Input.ICommand是在System.dll中定义的。实际上定义ICommand的PresentationCore已经在测试项目和类库项目中正确引用。我尝试删除对PresentationCore的引用,并进行清理和重新添加(如其他问题所述),但未能解决问题。
我该如何确定是什么导致它认为ICommand在System.dll中?