TFS dll and references issues

后端 未结 1 1294
情书的邮戳
情书的邮戳 2020-12-05 05:23

We use Team Foundation Server for our main project. Every time we add a new employee either onsite or offsite we always have to set up the references manually.

Is i

相关标签:
1条回答
  • 2020-12-05 06:00

    Nothing to do with TFS, really. You just have to check in your dependencies to source control.

    In your solution, add a folder called "Dependencies". Add a matching folder on disk in the same location in your solution hierarchy (annoying, I know). Add your dependent external DLLs to that directory.

    enter image description here

    As these are now part of the solution, they will travel with the solution into source control.

    Reference these in your projects. It will look like this

    enter image description here

    but it should be recorded in your solution file as a relative path.

    <Reference Include="Example">
      <HintPath>..\..\..\Dependencies\Example.DLL</HintPath>
    </Reference>
    

    If you're having problems with this not being the case, you can simply edit your project file and change the hint path.

    0 讨论(0)
提交回复
热议问题