引用的程序集缺少最新更新

发布于 2024-11-30 01:21:20 字数 513 浏览 0 评论 0原文

我有两个 Visual Studio 解决方案。首先是我在所有项目中共享的类库。第二个是我目前正在开发的网站。我将库编译成 DLL,并在第二个站点中引用了 DLL(而不是项目)。

最近我对库进行了一些更新,并用新的 DLL 覆盖了第二个解决方案中引用的 DLL。但是,当我重建解决方案时,将其放入 /bin 的 DLL 没有新代码。我已经:

  • 检查了 Reflector 中引用的 DLL。
  • 删除并重新引用项目中的新 DLL。
  • 手动检查项目 XML 中的引用。

一切看起来都是正确的,并且是从正确的地方拉出来的。所有项目都是.NET 3.5。

什么给?为什么引用的程序集具有更新的代码,但复制到 /bin 的程序集却没有新代码?

更新

在构建之后,我手动将引用的 DLL 复制到站点的 /bin 中,一切都按预期运行。有没有我缺少的参考资料?

I have two Visual Studio solutions. First is a class library that I share among all my projects. Second is the website I am currently working on. I compiled the library into a DLL and and referenced the DLL (not the project) in the second site.

Recently I made some updates in the library and overwrote the referenced DLL in the second solution with the new DLL. However, when I rebuild the solution, the DLL that makes it to the /bin does not have the new code. I have:

  • Checked the referenced DLL in Reflector.
  • Removed and re-referenced the new DLL in the projects.
  • Manually checked the reference in the project's XML.

Everything looks correct and is pulling from the right places. All projects are .NET 3.5.

What gives? How is it that the referenced assembly has the updated code but the assembly that gets copied to the /bin doesn't have the new code?

UPDATE

I manually copied the referenced DLL into the site's /bin after the build and everything ran as expected. Is there a reference somewhere that I am missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

梦途 2024-12-07 01:21:20

在删除并重新添加引用几十次之后,现在似乎可以正常工作了。我不知道是什么导致了这个问题。我不想说“键盘和椅子之间存在问题”,但我不确定它可能是什么,因为没有任何真正的改变。

After deleting and re-adding the references a few dozen more times, it seems to be working now. I have no idea what it was that caused the problem. I don't want to say that the "problem exists between the keyboard and chair" but I'm not sure what else it could have been since nothing really changed.

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