Reputation: 147
Ulitmately, I want to avoid having to create multiple solutions since all of the projects are for the same solution.
For instance, if I have a visual studio solution for website "MyWebsite" and want to create a "MyWebsite.UI" project and a "MyWebsite.Services" project that all lived in separate repos, how can I do this via Visual Studio / TFS?
The bigger picture that I am trying to achieve is being able to focus either individual projects or the entire solution. However, if I clone a repo for one of the projects, it will be lacking a solution. If I clone the solution, it will have all of the projects.
I am using Visual Studio Team Foundation Services with git version control.
Upvotes: 0
Views: 930
Reputation: 4342
Why do you wan't to have them in different repositories? It's perfectly fine to have a solution containing multiple projects, or different solutions containing different projects.
For splitting can use submodules in the Git repository containing the solution to add the repositories containing the projects. In this case you need to make sure that you pull the submodules while cloning the repository.
Another solution to reuse common libraries in different solutions is to package them as NuGet packages and host them on a private feed.
Upvotes: 2