缺少 PDB 文件和引用的输出
我的 .Net 应用程序 A 引用了库 B。库 B 引用了库 C。当我重建 A(在调试模式下)时,其输出目录包含 B.DLL 和 B.PDB 文件,但仅包含C.DLL 文件。 C.PDB 丢失,或者更确切地说,它没有从其项目的调试文件夹中复制。
事实上,查看 B 的输出目录,那里也缺少 C.PDB。然而,C.PDB 至少位于 C 的输出目录中。
为什么会这样?我该如何纠正它?
更新: 事实证明这不仅仅是那个 PDB 文件。整个库不会在引用它的输出目录中更新。什么会导致这种行为?这可能是 Visual Studio 的错误吗?
My .Net Application, A, has a reference to library B. Library B has a reference to Library C. When I rebuild A (in debug mode), its output directory contains me the B.DLL and B.PDB files, but only the C.DLL file. C.PDB is missing, or rather it is not being copied from its project's debug folder.
In fact, looking at B's output directory, the C.PDB is missing there, too. C.PDB is, however, in C's output directory, at least.
Why might this be and how can I correct it?
Update:
It turns out it's not just that PDB file. The entire library isn't being updated in output directories of those that reference it. What would cause that sort of behavior? Could it be a bug with visual studio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然我从 B 到 C 的引用是错误的。我搜索了未更新的 DLL,并注意到其中的两个实例与过时的实例具有相同的日期。我删除了它们,这破坏了 B 中的引用。替换引用后,所有内容现在似乎都可以工作,包括 C.PDB。
Apparently I had a bad reference from B to C. I did a search for the DLL that wasn't getting updated, and noticed two instances of that had the same date as the out of date instances. I deleted them, which broke the reference in B. Replacing the reference, all appears to work now, including C.PDB.