What is the equivalent to regsvr32 in .NET?

What is the equivalent to regsvr32 in .NET?

  • Comments 11

Where you once used Regsvr32 on unmanaged COM libraries, you will now use Regasm on managed .NET libraries.

Regsvr32 is the command-line tool that registers .dll files as command components in the registry“

“Regasm.exe, the Assembly Registration tool that comes with the .NET SDK,  reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered.“

If you want to register an assembly programmatically, see the RegistrationServices class and ComRegisterFunctionAttribute

 
Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post
Page 1 of 1 (11 items)