Monday, July 31, 2006

Accessing assemblies from VS PrivateAssemblies

I have been writing a little utility that is working with work items and using the UI code of the Team Foundation Client. Most of the work item tracking assemblies are in GAC and can be easily referenced and the loader will be able to find them once the code is executed, but for some of them (for instance Microsoft.TeamFoundation.WorkItemTracking.Controls.dll) that is not the case.

For such assemblies a number of options exist: they can be copied (Visual Studio does it automatically if you don’t reset the “Copy local” property of the reference), your tool can be copied to the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies where these .dlls by default reside, or use .config file to help the loader.
None of these options is clean.

Luckily, the Hippie Coder offers help in following article: Give the .NET loader a hand - how to load assemblies from VS PrivateAssemblies    

0 Comments:

Post a Comment

<< Home