Relative References in a VS project

I have been looking for a solution for this problem....

I would like to use relative Path's in the references of a solution.
Does anybody know if this is possible   ????

All I want is a checkout to location xyz and all the references should begin with xyz...

I want to be able to compile the projects without modifying all the references over and over again.......

 

 

Published 11-22-2004 9:54 AM by Patrick Wellink
Filed under:

Comments

# re: Relative References in a VS project

Monday, November 22, 2004 11:47 PM by Patrick Wellink
Never did get it working. Instead, I copied the outputed DLLs of each project to a known relative location as a post build step and referenced those from each (sub)project.

Under project properties, Common Projecties,
Build Events, Post Build Event Command Line, type:

copy $(TargetPath) $(SolutionDir)\bin

This way, you can easily switch from Debug to Release and back again.

# re: Relative References in a VS project

Tuesday, November 23, 2004 12:37 PM by Patrick Wellink
Maybe I just don't understand the problem. But I have a solution with several assemblies. And when I move the entire solution tree to another location, it compiles without a problem. Do you use DLL references, or project references?

# re: Relative References in a VS project

Tuesday, November 23, 2004 1:09 PM by Patrick Wellink
Well this is not always clear.....

It is a Biztalk Project and this is added to the GAC.

So physical location should not matter but it does because Visual studio requires an absolute reference path.....