开发者

relative references in .net

开发者 https://www.devze.com 2022-12-08 07:21 出处:网络
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?this link might be helpf

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?


this link might be helpful to your problem.


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消