ASP.NET 和 GAC
有一个使用参考 DLL 的 ASP.NET Web 应用程序。相同的 DLL 已在 GAC 中注册。
有没有一种方法可以强制 VS 或 ASP.NET 应用程序使用 Bin 文件夹中引用的 DLL,而不是使用 GAC 中的 DLL?
问候
There is an ASP.NET Web application that makes use of a reference DLL. The same DLL is registered in GAC.
Is there a way to force VS or ASP.NET application to make use of the referenced DLL inside Bin folder rather than using the one in GAC?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
afaik,唯一的方法就是删除 GAC 中的那个
afaik, the only way is to remove the one in the GAC
您需要从 GAC 中删除程序集,或者为 bin 目录中的程序集指定不同的名称、版本、区域性或强名称密钥,以加载 bin 目录中的程序集。
You will need to remove the assembly from the GAC or give the assembly in the bin directory a different name, version, culture, or strong name key to get the assembly in the bin directory to load.
我创建了一个性感的视觉工作室扩展,它将帮助您实现您的目标。 Muse VSReferences 将允许您添加全局程序集缓存从“添加 GAC 参考”菜单项对项目的参考。
I've created a sexy visual studio extension that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.