无法运行引用CLR项目的wpf项目

问题描述 投票:0回答:1

我已经创建了配置为Release(x64)的CLR项目库(ClassLibrary1)。并在ClassLibrary1的解决方案上添加了一个新的wpf项目(TestwpfOpenCV)。我在WPF项目中添加了CLR作为参考。我试图在X64 Release中构建两个项目。但是我在wpf项目的按钮单击上遇到了例外。

PresentationCore.dll中发生了'System.IO.FileNotFoundException类型的未处理的异常 无法加载文件或程序集“ ClassLibrary1.dll”或其依赖项之一。找不到指定的模块。

enter image description here

enter image description hereenter image description hereenter image description hereenter image description here

c# asp.net wpf clr release
1个回答
0
投票

我通过下载最新版本的opencv解决了。还删除了为opencv路径创建的环境变量。并将所有dll从该路径复制到项目的bin文件夹。

© www.soinside.com 2019 - 2024. All rights reserved.