System.Windows.Interactivity必须在主项目中引用
System.Windows.Interactivity must be referenced in the main project
所以我有一个 WPF 项目,我的界面在与主项目不同的项目中。我去引用了System.Windows.Interactivity,但是不行。直到我将它也添加为对主项目的引用...
这是我添加的任何参考中第一次发生这种情况。是什么让这个如此特别?
编辑:
通过不会工作...这是错误。
{"Could not load file or assembly 'System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."}
System.Windows.Interactivity.dll 不在 GAC 中,所以 .Net 不知道在哪里可以找到它。
通过添加对主项目的引用,您可以让构建系统将 DLL 复制到输出文件夹。
这让运行时找到它。
所以我有一个 WPF 项目,我的界面在与主项目不同的项目中。我去引用了System.Windows.Interactivity,但是不行。直到我将它也添加为对主项目的引用...
这是我添加的任何参考中第一次发生这种情况。是什么让这个如此特别?
编辑: 通过不会工作...这是错误。
{"Could not load file or assembly 'System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."}
System.Windows.Interactivity.dll 不在 GAC 中,所以 .Net 不知道在哪里可以找到它。
通过添加对主项目的引用,您可以让构建系统将 DLL 复制到输出文件夹。
这让运行时找到它。