登记,海关总署,荷兰国际集团集为COM Interop什么时候才能有关系吗? [英] Does order matter when registering, gac-ing assemblies for COM interop?

查看:144
本文介绍了登记,海关总署,荷兰国际集团集为COM Interop什么时候才能有关系吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当为COM Interop注册.NET程序集,我做两件事情,目前这个命令:

  regasm /tlb:MyDll.tlb MYDLL.DLL

GACUTIL /我MYDLL.DLL
 

我用 regasm 来注册类型库的COM和 GACUTIL 的程序集安装到GAC。不要紧,这令我做这两个动作?另外,我进行更新,我的DLL,我需要取消注册和重新注册它,从GAC卸载并重新安装,或者两者都不是?

解决方案
  

难道为了此事?

没有。

  

您是否需要在GAC,当重新安装   该dll已经改变了?

是的。

  

你需要重新注册为COM   当DLL已经改变了?

这要看情况。如果您在COM DLL增加了新的类型,然后是。如果你只改变了一些内在的东西在现有的类型,那么没有。为了虽然是安全的,永远取消注册和重新注册。

When registering .NET assemblies for COM Interop, I do two things, currently in this order:

regasm /tlb:MyDll.tlb Mydll.dll

gacutil /i Mydll.dll

I use regasm to register the type library for COM and gacutil to install the assembly into the GAC. Does it matter which order I do these two actions? Also, as I make updates to my dll, do I need to un-register and re-register it, uninstall it from the gac and re-install it, both or neither?

解决方案

Does order matter?

No.

Do you need to reinstall in GAC when the dll has changed?

Yes.

Do you need to re-register for COM when dll has changed?

That depends. If you added new types in your COM dll, then yes. If you only changed a few internal things in existing types, then no. To be safe though, always un-register and re-register.

这篇关于登记,海关总署,荷兰国际集团集为COM Interop什么时候才能有关系吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆