How should I manage/declare dependencies between open source C# projects?

Posted by munificent on Stack Overflow See other posts from Stack Overflow or by munificent
Published on 2010-06-08T05:37:03Z Indexed on 2010/06/08 5:42 UTC
Read the original article Hit count: 224

I've got a game (a roguelike to be specific) in C# that I'm in the process of cleaning up to open source. One step I'd like to take is splitting it into three distinct pieces:

  1. A simple package of utility classes, things like 2D arrays, vectors, etc.
  2. A terminal UI package that gives you a curses-like display. It depends on 1.
  3. The actual game, which uses 1 and 2.

Right now, these are all separate projects in the same solution, but I'd kind of like to make them completely separate projects (in the "open source project" sense, not the "visual studio project" use of the term) with their own names and repos. I think, at the very least, #1 is generally useful even if you aren't building game, and I don't want someone to have to build an entire game just to get some handy functions.

What I'm not sure about is how to handle the dependencies if I split up the solution. If someone decides they want to sync the game, how should I ensure they also get 1 and 2?

  1. Include the built dependent .dlls in the games repo?
  2. Just document, "you need these other projects and they must be in a path relative to the game like this".
  3. Just leave it all one giant solution and a single repo.
  4. Something I'm not thinking of?

© Stack Overflow or respective owner

Related posts about c#

Related posts about open-source