简体   繁体   English

.NET策略和共享存储库

[英].NET Strategy and shared repositories

I am working with C# and GIT. 我正在使用C#和GIT。 I have multiple projects that use shared repositories. 我有多个使用共享存储库的项目。 I have Project A, Project B, Project C. I have shared repositories Shared 1, Shared 2. Project A uses Shared 1 and 2. Project B uses Shared 2 and Project C uses Shared 1. 我有项目A,项目B,项目C.我有共享存储库共享1,共享2.项目A使用共享1和2.项目B使用共享2,项目C使用共享1。

What is a correct approach for referencing Shared repos. 什么是引用共享存储库的正确方法。 Having them directly as source code references or pack them into nuget and use them as a nuget references on each project. 将它们直接作为源代码引用或将它们打包到nuget中,并将它们用作每个项目的nuget引用。 I find it difficult to work concurrently on two projects that use the same shared repository and each one needs changes based on the project they are being used. 我发现很难在使用相同共享存储库的两个项目上同时工作,并且每个项目都需要根据所使用的项目进行更改。 How do I overcome this problem? 我该如何克服这个问题?

Thanks in advance 提前致谢

Nuget is the way to go. Nuget是要走的路。 But you could have a look to packet that simplify the use of nuget packages : https://fsprojects.github.io/Paket/ 但你可以看一下简化nuget包使用的数据包: https ://fsprojects.github.io/Paket/

And especially 2 things that can help you: 特别是可以帮助你的两件事:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM