Visual Studio&Source Control: How to have shared code?

后端 未结 4 1909
傲寒
傲寒 2021-01-22 20:31

i want to have some shared code (code library, controls, utilities, helper classes, etc) in Visual Studio. i do not mean shared assemblies, i mean shared code (i.e. i want to sh

4条回答
  •  Happy的楠姐
    2021-01-22 20:59

    At my work we starting to solve this problem using Subversion´s external folders. You just need to put a 'external' property on yor root folder (or any folder), like:

    ExternalLib https://yourrepo/SharedLibs/trunk
    

    When you update the project, the folder ExternalLib will be created and populated with the repo´s contents. Any commit will be reflected on the respectively repo.

    So, you can make your back-up hack solution works with SVN too =)

提交回复
热议问题