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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{1237c0fa-4f6e-43c5-9ee4-a5938847c54a}]
"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: