How to add the Team Foundation assemblies to the .NET tab in the VS Add Reference dialog

For anyone working with the VSTS Extensibility Kit (part of the Visual Studio 2005 SDK), Buck Hodges has posted a very helpful batch file on his blog that automatically adds the Microsoft.TeamFoundation assemblies to the .NET tab in Visual Studio 2005. Here’s an extract from his post;

To write an app using the Team Foundation API, you’re going to need to reference assemblies that are in the GAC.  It’s not possible to add a reference to a .NET assembly in the GAC in VS when you need to add a reference to an assembly.

The GAC’ed Team Foundation assemblies are also copied to the PrivateAssemblies folder under the VS directory.  When you want to add a reference to a TFS assembly in VS solution, you can choose Browse and find the assembly.

To make it more convenient, you can also add the TFS assemblies to the .NET tab in the Add Reference dialog.

Download the batch file from his post here.

If you haven’t started exploring the extensibility options in VSTS then the Visual Studio Extensibility Developer Center is a great place to start.