Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reference TeamFoundation assemblies in my project?

Tags:

c#

.net

tfs

I need to reference Team Foundation assemblies in my project but I cannot.

When looking for Microsoft.TeamFoundation.* in the GAC I cannot find any assemblies. Then I browse to C:\windows\assembly and here I find the assemblies that I need. When I select all or one of the assemblies to create a reference nothing happens. The dialog 'blinks' and returns focus to the top of the list. The reference is not created?! I have tried this with other assemblies in this directory and I cannot make a reference to any of them.

I restarted VS and tried again. No luck. So how do I reference these Dlls? I have TFS installed on this machine.

Thanks..

like image 669
Nick Avatar asked Sep 07 '10 20:09

Nick


People also ask

What is assembly reference in C#?

Reference assemblies are usually distributed with the Software Development Kit (SDK) of a particular platform or library. Using a reference assembly enables developers to build programs that target a specific library version without having the full implementation assembly for that version.


1 Answers

These assemblies are installed for x64 at
- %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
- %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies

and for x86 at
- %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
- %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies

like image 64
Ewald Hofman Avatar answered Sep 28 '22 19:09

Ewald Hofman