在WPF中reference 一个CLI的DLL,编译没有错误,可是运行出现如下错误:An unhandled exception of type 'System.IO.FileNotFoundException' occurred in XXCentral.exeAdditional information: Could not load file or assembly 'XX_CS.dll' or one of its dependencies. The specified module could not be found.
紧急求救啊,是什么目录没有设置对还是?PS:依赖关系:XXCentral.exe --> XX_CS.DLL --> MYUI.DLL --> Other.DLL.

解决方案 »

  1.   

    能不能提供关于你问题的更多信息,比如一个截图或一部分代码,从这个提示只能得到 你的DLL在运行的时候找不到,你应该仔细检查下你的代码,是不是某个路径写错了(少写了一个东西)
      

  2.   

    关键问题在于,我不知道怎么设置路径啥的。而且我代码里面没有显示引用dll,是通过add reference来引用其他工程文件的。不过我将所有的output 目录设置到../bin/debug。而不是原有目录。c# output目录:
    并且C# 已经引用 CLI工程了。CLI reference目录