ASP.NET 的 DLL 绑定(DLL 版本控制)

发布于 2024-12-15 08:53:22 字数 347 浏览 6 评论 0原文

我知道这是一个非常基本的问题 - 但直到现在我才遇到这个问题 - 所以我寻求帮助。

我有两个同名的 dll 文件(example.dll),但幸运的是版本号分别为 1.0.3180.20767 和 1.0.2490.20011。我想在同一个项目中使用这两个 dll。

我该如何使用它们? - 只需单击“添加引用”就会失败,并显示以下消息在此处输入图像描述

我可以重命名文件,以便它们现在是称为“example1.dll”和“example2.dll” - 但这可以吗?有没有更好的方法来做到这一点。

感谢大家的帮助!

I know this is a very basic question - but I did not face this issue till now - so am asking for help.

I have two dll files, with the same name (example.dll), but fortunately with diff version numbers 1.0.3180.20767 and 1.0.2490.20011. I want to use both these dll in the same project.

How do I use them? - Simply clicking "Add reference" fails with the following messageenter image description here

I can rename the files so that they are now called "example1.dll" and "example2.dll" - but is that ok? is there a better way to do this.

Thanks all for your help!

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

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

发布评论

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

评论(1

谁的新欢旧爱 2024-12-22 08:53:22

我认为添加第一个程序集后,转到该引用的属性并为其分配一个别名。那么应该也可以添加第二个。

I think that after adding the first assembly, go to properties of that reference and assign an alias to it. Then it should be possible to add the second one as well.

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