是否有 (.net) COM+ 程序集需要安装在GAC中吗?
我有一个 .net 程序集,其中包含 COM+ ServicedCopmonent,目前我将其安装到 GAC 中以使一切正常工作。 这意味着我还需要在 GAC 中引用它的每个程序集。
在开发过程中,对这些程序集进行更改、将它们重新安装到 GAC 然后进行测试是非常痛苦的。
是否可以维护 COM+ 组件但不将所有内容都包含在 GAC 中?
I have a .net assembly that has a COM+ ServicedCopmonent in it and at the moment I install it into the GAC to get everything working. This means that I need to have every assembly that it references in the GAC as well.
During development it is quite painful to make changes to thes assemblies, re-install them to the GAC and then test.
Is it possible to maintain the COM+ component but not have everything in the GAC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,您不必将其安装在 GAC 中。 您可以使用 regsvcs (http://msdn.microsoft.com/en-us/ library/04za0hca.aspx) 和 /appdir 参数来明确指定应用程序所在的位置。
No, you don't have to install it in the GAC. You can use regsvcs (http://msdn.microsoft.com/en-us/library/04za0hca.aspx) with /appdir parameter to specify explicitly where the app is located.
不,它们需要使用 regsvcs 工具在注册表中注册。 但它必须是一个强命名的程序集。
No, they need to be registered in the Registry using the regsvcs tool. It needs to be a strongly named assembly though.