
Find the Name of That Command Bar #90
Chapter 12, Extending Visual Studio
|
407
HACK
Before doing anything else, it is of the utmost importance
that you exclude any assemblies that are default Visual Stu-
dio assemblies. This could include Extensibility.dll, Office.
dll, VSLang.dll, DTE.OLB, EnvDTE.DLL, stdole.DLL, and
others. If you leave these assemblies in your installation
project, then when a user uninstalls your add-in, it could
remove these assemblies, thus breaking Visual Studio and
requiring the user to either repair her installation or manu-
ally try to re-add the assemblies your installer removed.
Next, you will need to build the installer, as it is not built by default. You
can do this by right-clicking on the project and clicking Build. After the
project has been built, you can right-click on the installer and click Install.
This will install your add-in on your machine. Next, you will need to close
and then reopen the IDE, and you should see your menu items. If you do
not see your menu items, make sure that your add-in is enabled in the add-
in manager and then try running
devenv /setup [Hack #92].
This hack has been a quick introduction to the development of add-ins, but
there is a lot more to learn. Here are some great resources to help you learn
more about add-in development:
Visual Studio Extensibility Center
http://msdn.microsoft.com/vstudio/extend
Visual Studio .NET Add-ins Yahoo Group ...