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

How to register existing packages to run under VS 2010 Experimental Instance

Aaron Marten’s blog “Pkgdef and the Experimental Instance in VS 2010” points out that when devenv.exe is invoked with the ‘/rootsuffix Exp’ switch, the VS Shell no longer uses the experimental registry hive. Instead, the shell merges the HKLM\Software\Microsoft\VisualStudio\10.0 registry settings and the .pkgdef files in the user’s …AppData\Local\Microsoft\VisualStudio\10.0Exp\Extensions folder. If you have an existing…

2

How to push F1 context keywords for property pages in the project designer?

Background: IPropertyPage.Help is not invoked on property pages integrated with the Application Designer. Consequently, you need to push an F1 keyword by calling IHelpService.AddContextAttribute, similar to what the VB .NET and C# project property pages do. Solution: Using the IronPython Integration sample as a test bed for illustration purposes, you can push an F1 context…

1

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…


Hotfix posted for VS 2010 RC1 Intellisense crash

On systems where an application or device is actively using UIAutomation (Tablet, Multi-touch, etc), the IDE may crash if the user is typing while intellisense is being displayed or dismissed. KB article describing this problem will be posted to http://support.microsoft.com/default.aspx?scid=kb;EN-US;980615 in the next few days. A hotfix that addresses this problem can be downloaded from…


Problems building VS 2008 SDKSample

Recently, one of our partners had a question pertaining to Help 2.0 integration, and I wanted to use the SDKSample to try a few things out with filters and help content. Apparently, it’s been a while since I last played with that particular sample. Upon attempting to build it, I was confronted with the following…


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)        …


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…


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…


Your VS Package may not load after porting it to VS 2012

With VS 2010, the IDE recreates the user’s 10.0_Config registry hive and remerges menu resources when it detects a change under HKLM\Software\Microsoft\VisualStudio\10.0. For VS 2012, the IDE team felt this had too much of a negative effect on startup performance, and the feature was removed. Consequently, if you deploy your VS Package(s) with a custom…