views:

102

answers:

2

I browse to a a dll and add it as a reference. The problem is the reference absolute path is being stored. How do I change this to be a relative reference instead?

+2  A: 

Hi, this link might be helpful to your problem.

daxsorbito
A: 

I think VS adds relative path to the referenced assemblies.

You can always edit .csproj file as it's regular xml file:

 <ItemGroup>
    <Reference Include="XXX, Version=2.7.3424.39182,...">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\Lib\XXX.dll</HintPath>
    </Reference>
Pawel Lesnikowski