Roy Osherove

View Original

.Net Shortcuts + Automate GAC and COM operations using this Cool Add-in

Date: 6/2/2003
Author:
Enrico Sabbadin
Versions: VS.NET Level: Advanced
File Size: 315K download

Summary: This add-in for VS.NET 2003 automatically:
  1) Registers the assembly in the GAC right after it has been built.
  2) Exports types to COM: produces the type library (and registers it if specified) .. as tlbexp.exe does.
  3) Registers classes in the registry ..as regasm.exe does.
  4) Avoids the bulding of an Assembly if its read-only attribute is set.
  5) If a build fails, it stops the build process for the remaining assembly in the solution.
You configure the Add-in behaviour for your VS.NET project by placing appropriate entries in the section of the project app.config file.

Note: if you use VS.NET 2003, read this tip to see how you can configure simple pre and post-build actions without the help external add-ins.

----------------------------------------------------

Date: 5/26/2003
Author:
Enrico Sabbadin
Versions: .NET Level: Advanced
File Size: 4K download

Summary: This registry file adds the following entries to the Windows Explorer's context menus, that will help you speed your development and test cycle:
1) .idl files : Build : run midl.exe against the idl file top produce a type library from it.
2) .dll files: register/unregister COM dll using regsvr32, register .NET assembly in the GAC, register .NET assembly for COM Interop (regasm.exe), register .NET assembly for COM Interop using the codebase switch (regasm.exe /codebase), register/unregister COM EXE.
3) .tlb files : use regtlib to register a type library.
4) Any directory: Open a DOS console and sets required PATH and INCLUDE environment variables (runs vsvar32.bat).

[via VB2TheMax]

Cool!