I have a number of visual studio solutions and projects (many projects may belong to multiple solutions) that I would like to add to Visual Studio Online (GIT Version). An example would be:

Solution 1

  • Project A
  • Project B
  • Project C

Solution 2

  • Project B
  • Project C
  • Project D

Should each Solution be created as a Project? Or Create one VSO Project with each solution and project as their own repo?

  • Are your solutions sharing projects??
    – RubberDuck
    Mar 17, 2017 at 0:49
  • Yes, the solutions are sharing Visual Studio projects (.csproj)
    – TreK
    Mar 17, 2017 at 12:45
  • 2
    Then you don't want to put these things in different git repositories. I would highly recommend turning those shared projects into class libraries & nuget packages.
    – RubberDuck
    Mar 17, 2017 at 13:20

1 Answer 1


You do not want separate VSO projects, that can cause issues if you're using work items and is just an unnecessary overhead unless the code will never be worked on by the same devs.

As for separate repos that's slightly different. Git doesn't really support large repos, however looking at the structure you show it doesn't look like you're going to have gigabytes of code in your solutions.

Probably the best option to start with is a single repo. If the codebase grows then it's fairly easy split the repos up in the future if that makes sense.

As for the fact that solutions share projects, you should probably look at using nuget to turn those in to binary dependencies rather than sharing at the code level. It might make sense then to put the source for those libraries in to a separate repo, but even then don't over think it. Keep it simple and add complexity when required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.