Dissecting VS 2010 Package Registration

While it’s still possible to register your packages, by manually or programmatically adding the requisite registry keys and values under the HKLM\Software\Microsoft\VisualStudio\10.0 registry hive, it’s no longer the recommended way to register your packages with the integrated (or isolated) shell. VS2010 now uses pkgdef and vsixmanifest files to integrate custom packages into the shell. For…

0

Replacing the Default Error Dialog in the Isolated Shell

Background: Recently one of our VSIP partners asked if it was possible to customize the default error dialog that the Isolated Shell displays when encountering an error. Let’s suppose you have a package command handler that might throw an error with code that looks like the following:         private void OnTestErrorDialog(object sender, EventArgs e)        …

0

Macro that tests for proper implementation of AutomationProperties

Background: VSPackages can offer up a set of custom properties for their Tools.Options pages, by registering the pages under Visual Studio’s AutomationProperties registry key, by using the ProvideOptionPageAttribute. This allows for programmatic access to the Tools.Options properties via DTE.Properties(<categoryName>, <pageName>). The Example.OptionsPage sample in the Visual Studio SDK is missing the following attributes on its…

0

PcwTESample for VS 2008

Background: The PcwTESample project, is a sample which illustrates how to extend the Team Explorer tool window, and upload customized Team Projects to TFS. It is installed with the Visual Studio 2008 SDK under the …\ VisualStudioTeamSystemIntegration\Team Explorer and Project Creation subdirectory. The PcwTESample that currently ships with the Visual Studio SDK for VS 2008…

0

How to localize a managed VS Package

Background: Historically, localized resources for Visual Studio packages were located in native satellite resource DLLs, located in a codepage subdirectory. For example, if you had installed both the English and Japanese versions of Visual Studio on the same system, you would find some of these native satellite DLLs under C:\Program Files\Microsoft\Visual Studio 9.0\Common7\Packages\1033 and C:\Program…

3