COM registration without version ID

Is it possible to register a COM interface regardless of the assembly version?

Right now I am getting a registry key like

MyIfaceName, Version=1.0.3259.17799, Culture=neutral, PublicKeyToken=1234567890abcdef

      

But since the assembly is auto-versioned ( 1.0.*.*

), every day I make a new assembly, COM-iface needs to be re-registered.

How can I register without specifying a version? What are the consequences of this?

+1


source to share


1 answer


If you are using regasm.exe to create a COM wrapper, you can use the / codebase option, which creates a Codebase entry in the registry,

The Codebase entry specifies a file path for an assembly that is not set in the global assembly Cache.



Then you can easily update the assembly without having to re-register, if the interface hasn't changed, of course.

0


source







All Articles