在Visual Studio解决方案中引用多个项目中的外部库的最佳方法

Rob*_*est 5 version-control reference visual-studio

我们在VSS源代码控制下有一个Visual Studio 2008解决方案.该解决方案包含许多类库,其中许多需要引用不属于解决方案的程序集.目前,我们在每个项目中保留该程序集的单独副本,但随着项目数量的增加,将更新复制到外部程序集变得越来越繁琐.有没有更好的方法在解决方案和源代码管理中拥有程序集的单个副本,然后可以在所有项目中引用它?

Arn*_*psa 5

在根文件夹中创建"外部库"/"lib"/"libraries"文件夹,将其添加到项目中的源代码控制和引用库中.使用"复制本地"参考属性项目将自动将其复制到其bin文件夹中.

我们项目的结构:

workspace
  config
    partial app configs goes here
  lib
    external libraries goes here
  src
    Domain          
      domainProjects
    Infrastructure
      infrastructureProjects
        references 3rd party dll's from lib folder
    UI
    Tests        
  solutions
    primaryUIapplication
      references projects from "src" folder
    domainLogic
    etc.
Run Code Online (Sandbox Code Playgroud)

在解决方案中它看起来像:

_misc
  config
  tests
Domain
Infrastructure
UI    
Run Code Online (Sandbox Code Playgroud)