Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Reference paths and TFS

I have a project where I use the reference paths to store the necessary dlls.
My problem is when I checked these in my TFS server and after my colleague got the latest version from the TFS server, he could not see the reference paths on the property page in the project files.

What did I do wrong?

like image 211
user295541 Avatar asked Mar 13 '12 09:03

user295541


1 Answers

Assembly reference paths are not part of the project file. Visual Studio saves them in a user specific setting file (*.csproj.user or *.vbproj.user), which shouldn't be added to source control.

If you want to share assembly reference paths with the rest of the team you can add them manually to a project file with the <AssemblySearchPaths> element:

<PropertyGroup>
    <AssemblySearchPaths>
        ..\..\MyReferences\;
    </AssemblySearchPaths>
</PropertyGroup>
like image 67
Enrico Campidoglio Avatar answered Oct 05 '22 23:10

Enrico Campidoglio