无法加载文件或程序集“System.Windows.Interactivity”加载、文件、程序、Interactivity

2023-09-04 02:37:57 作者:哄你开心

我只是添加System.Windows.Interactivity组装。 XamlParse上运行时扔给我一个例外:

I just added System.Windows.Interactivity assembly. XamlParse throw me an exception on run time:

无法加载文件或程序集System.Windows.Interactivity,   公钥= 31bf3856ad364e35或它的某一个依赖。该   系统找不到指定的文件。

Could not load file or assembly 'System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

谷歌搜索发现,不仅关系到棱镜的结果 - 我不使用

Google search found only results related to prism - which I do not use.

任何想法,为什么会发生?

Any idea why does it happen?

推荐答案

只是一个猜测,可能是你是不是在主项目引用该库。

Just a guess, might be you are not referencing the libraries in the MAIN project.

这发生在我身上好几次。

It has happened to me several times.