是否可以将程序集作为某种“链接程序集”安装到 GAC 中?
我正在尝试部署某种框架,因此需要在 GAC 中注册一些程序集。
有趣的部分是: 这些 GAC 程序集只能由框架开发人员使用,客户端应用程序不应使用这些 GAC 程序集,而应使用其本地目录中的 GAC 程序集(GAC 程序集可能是不同版本,很可能更高)。
我已经找到并尝试了 app.config 设置,但客户端应用程序似乎忽略了它(安装的最新 .NET 运行时是 3.5)。
I'm trying to deploy some sort of framework and therefore need to register some assemblies in the GAC.
The interesting part is:
These GAC assemblies should only be used by the framework developer, the client apps should not use these GAC assemblies but the ones in their local directories (the GAC assemblies could be of a different version, most likely higher).
I've already found and tried the app.config setting but it seems to be ignored by the client app (latest .NET runtime installed is 3.5).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为您将在内存中加载给定 dll 的两个不同版本,所以需要将它们隔离。常见的方法有;
Because you will be loading two different versions of a given dll in the memory you need to isolate them. common methods are;