Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

RegAsm.exe — Assembly Registration Utility

Synopsis

RegAsm assembly [options]

Description

Registers an assembly in the system registry. This allows COM clients to call managed methods. You can also use it to generate the registry file for future registration. If the assembly is only accessed from one COM client, and that client lives in the same directory as the assembly, you do not need to add the assembly to the GAC. If you want the assembly to be accessible to all COM clients, you should add it to the GAC (see GacUtil.exe ).

Example

regasm /regfile:c.reg c.dll

Options

/?, /help

Displays usage information and exits.

/codebase

Specifies a file path for the assembly. Do not use this if the assembly is in the GAC, or if you later plan to add it to the GAC. The assembly must be signed with a strong name (see Sn.exe ).

/nologo

Suppresses display of the banner and copyright messages.

/regfile[:file ]

Generates a .reg file that you can use to add the assembly to the registry. This option does not change the registry; you need to double-click on the generated .reg file to add the assembly to the registry. You cannot use this option with /unregister or /tlb.

/registered

Refers only to type libraries that are already registered.

/silent

Suppresses display of success messages.

/tlb[:file ]

Generates a type library (.tlb).

/unregister

Unregisters the assembly.

/verbose

Displays verbose output.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Joe Mayo

Publisher Resources

ISBN: 0596005261Catalog PageErrata