Visual Studio 2005/2008 : Reference Path

Monday, 15 October 2007

Posted by Sébastien Lachance with Comments (0)

When I came across this feature, my world changed forever. When you are in a multi-user scenario and your assemblies are stored in a different folder from your peer, then you have this solution.

Suppose you get the latest version from the project you are working on and the reference to AssemblyA is broken because the path of the assembly is C:\dev\lib. But you know that you have it in a folder somewhere else and you don't want to duplicate that assembly. Then the reference path will come to the rescue. Adding a reference path will add a place that will be looked when checking for references.

This is how you do it :

Step 1. In the solution explorer, right-click on the project with a broken reference.

Step 2. Click Reference Paths tab

Step 3. Enter the folder in which your assembly is located.

Step 4. Click the Add Folder button. This is what it should look like :

Reference

Notice that you can also Update and Delete reference in this page.




blog comments powered by Disqus