{"id":4373,"date":"2006-01-12T07:18:00","date_gmt":"2006-01-12T07:18:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/01\/12\/how-to-add-the-team-foundation-assemblies-to-the-net-tab-in-the-vs-add-reference-dialog\/"},"modified":"2006-01-12T07:18:00","modified_gmt":"2006-01-12T07:18:00","slug":"how-to-add-the-team-foundation-assemblies-to-the-net-tab-in-the-vs-add-reference-dialog","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-add-the-team-foundation-assemblies-to-the-net-tab-in-the-vs-add-reference-dialog\/","title":{"rendered":"How to add the Team Foundation assemblies to the .NET tab in the VS Add Reference dialog"},"content":{"rendered":"<p>To write an app using the Team Foundation API, you&#8217;re going to need to reference assemblies that are in the GAC.&nbsp; It&#8217;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.<\/p>\n<p>The GAC&#8217;ed Team Foundation assemblies are also copied&nbsp;to the PrivateAssemblies folder under the VS directory.&nbsp; When you want to add a reference to a TFS assembly in VS solution, you&nbsp;can choose Browse and find the assembly.<\/p>\n<p>To make it more convenient, you can also add the TFS assemblies to the .NET tab in the Add Reference dialog.&nbsp; This <a href=\"http:\/\/support.microsoft.com\/default.aspx?scid=kb;en-us;306149\">knowledge base article<\/a> describes how to add an assembly to the list in the .NET tab.<\/p>\n<p>Based on that, here&#8217;s a simple batch script that will add all of the GAC&#8217;ed Team Foundation assemblies to the list.&nbsp; There are probably assemblies you&#8217;ll never need to use in this list, so feel free to trim it down.&nbsp; You can copy the text to a file called register.bat and run it.&nbsp; The batch script assumes that you installed VS in the normal Program Files directory.&nbsp; Since this script modifies your registry, all of the usual disclaimers apply, you should back it up beforehand, etc.<\/p>\n<blockquote>\n<p><font face=\"Courier New\">reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.Build.Common \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.Client \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.Common \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.Common.Library \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.VersionControl.Client \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.VersionControl.Common \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.VersionControl.Common.Integration \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client.Cache \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client.DataStore \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client.Provision \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client.QueryLanguage \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Client.RuleEngine \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<br>reg add HKCUSoftwareMicrosoft.NETFrameworkAssemblyFoldersMicrosoft.TeamFoundation.WorkItemTracking.Proxy \/ve \/d &#8220;%programfiles%Microsoft Visual Studio 8Common7IDEPrivateAssemblies&#8221; \/f<\/font><\/p>\n<\/blockquote>\n<p>After running the script, you should see the GAC&#8217;ed Team Foundation assemblies listed in the .NET tab.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/ewhodges.members.winisp.net\/images\/vsdotnettab.png\"> <\/p>\n<p>[Update 1\/12]&nbsp; I fixed some errors in the first couple of paragraphs.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To write an app using the Team Foundation API, you&#8217;re going to need to reference assemblies that are in the GAC.&nbsp; It&#8217;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&#8217;ed Team Foundation assemblies are also copied&nbsp;to [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6,8],"class_list":["post-4373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>To write an app using the Team Foundation API, you&#8217;re going to need to reference assemblies that are in the GAC.&nbsp; It&#8217;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&#8217;ed Team Foundation assemblies are also copied&nbsp;to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=4373"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=4373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=4373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=4373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}