ASP.NET 的 DLL 绑定(DLL 版本控制)
我知道这是一个非常基本的问题 - 但直到现在我才遇到这个问题 - 所以我寻求帮助。
我有两个同名的 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 message
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为添加第一个程序集后,转到该引用的属性并为其分配一个别名。那么应该也可以添加第二个。
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.