C#无法加载文件或程序集...系统找不到指定文件 [英] C# could not load file or assembly...system cannot find file specified

查看:1155
本文介绍了C#无法加载文件或程序集...系统找不到指定文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个程序WinForms应用程序引用我自己写的一些自定义库。我建立依赖于另一个库以及一个特定的库当我这样做,我得到以下警告消息:

Writing a routine WinForms app that references a few custom libraries written by myself. I am building one particular library which depends on another library and, when I do, I get the following warning message:

无法加载文件或程序集RHLib'版本1.0.0.0,文化=中性公钥= null或它的一个依赖该系统找不到指定的文件

"Could not load file or assembly 'RHLib' Version 1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified"

应用功能外,还有没有错误消息,但我那些喜欢一个完全干净的编译之一 - 没有错误,没有警告。我不明白这一个。

The application functions, there are no error messages, but I am one of those that likes a completely clean compile - no errors, no warnings. And I cannot figure this one out.

有关图书馆拥有的失踪库的引用,丢失的库编译,住在当VS完编译Debug目录,构建顺序放置的失踪库作为第一个项目建成失踪库没有依赖关系 - 它是一个小型图书馆建成让我出了圆形装配问题的

The library in question has a reference to the "missing" library, the "missing" library is compiled and lives in the Debug directory when VS finishes compiling, the build order places the "missing" library as the first item built and the "missing" library has no dependencies - its a small library built to get me out of a circular assembly problem.

任何想法?

推荐答案

看起来像我可能已经找到了。尽管该警告是从使用了失踪库库来,加入到呼吁其所谓的失踪库库中的应用程序的引用(如果你知道我的意思)删除该警告。

Looks like I may have found it. Even though the warning was coming from the library that used the "missing" library, adding a reference to the application which called the library which called the "missing" library (if you know what I mean) removed the warning.

感谢您的输入乡亲!

这篇关于C#无法加载文件或程序集...系统找不到指定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆