53.7. Deployment

As stated in the first sections of the chapter, the structure of a macro is different from normal applications and it's a stand-alone code package that can't be compiled into binary form.

A macro package with a .vsmacros extension must be deployed to the end user's machine in order to let the user use the macros included in the package. These files must be deployed to a specified path on the destination machine.

Macros must be deployed to the VSMacros80 folder located in the Projects folder of your Visual Studio 2008 folder in personal documents. The personal documents name is Documents in Windows Vista and My Documents in Windows XP or 2003. The path for your projects can be changed in Visual Studio via the Options dialog.

You can automate the deployment process with a Windows installer setup or Visual Studio Content Installer setup files to avoid deploying the macro packages manually.

Get Professional Visual Studio® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.