缺少 PDB 文件和引用的输出

发布于 2024-09-25 15:22:59 字数 314 浏览 0 评论 0原文

我的 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桃酥萝莉 2024-10-02 15:22:59

显然我从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文