May 23, 2008

VSPackage - moving the assembly out of the GAC

Some tips when moving your VS Package assembly out of the GAC.
First of all in order for Visual Studio to find the Package in it's new location you need to tell it where to find it, this is done in the Registry with the CodeBase key.
This is done in the Registry at

"Codebase"="C:\\Program Files\\MyCompany\\MyProduct\\MyPackageAssembly.dll"

This is also the case for other classes which have GUIDs in your package.
Use regasm with the /codebase switch to tell you which classes may need an additional registry entry.

No comments: