Saturday, April 29, 2006

Visual Studio 2005 Toolbox Utility

The Code Project - Visual Studio 2005 Toolbox Utility

"If you have ever tried to write a user control in Visual Studio.NET, you’ll already know that the process is bittersweet.  On one hand, writing the control itself is painless and Visual Studio 2005 has greatly improved the process of making controls work on multiple .NET platforms via design-time attributes and "asmmeta" assemblies.  On the other hand, however, deploying controls and adding them to the Toolbox is a process rife with errors.  It is definitely not a matter of adding a registry key (as I would have liked to see).

After getting a lot of e-mails from customers asking me how to add real-time GPS controls to their Toolbox, I decided that I needed to come up with some kind of utility to get the job done.  Visual Studio 2005 does already have some mechanisms for installing user controls, such as ".vsi" files, but unfortunately this approach typically results in a "Package Load Failure" and does not have a guarantee to work on every VS2005 installation.  Fortunately, Chetan Chudasama generously gave out source code in his blog which explains how to add or remove Toolbox controls using code and the "DTE" (Design-Time Environment) for Visual Studio.  Thanks to his efforts, I was able to turn the code into a command-line utility which is well-suited for installers (which is usually when Toolbox controls are installed).

This article describes how to use the utility and integrate it into your own installers.  You are welcome to redistribute this utility and I consider it freeware. 

..."

Very nice. This is a keeper...

(via Joteke’s Blog - Visual Studio 2005 Toolbox Utility)

No comments: