git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Project structure of .NET-Projects using git submodule or something different

From
HHHarald Heigl <harald@heigl-online.at>
Date
Jan 31, 2012, 22:41 UTC
Message-ID
<002401cce069$75ecc1a0$61c644e0$@heigl-online.at>

Hi, I'm searching for an adequate Project-structure for our .NET-Projects, but I think the problem isn't specific to .NET-Programs, it's more "how can I nest submodules toghether".

Let's assume following Project structure (Dependencies and Subdependencies
are submodules and submodules of the submodules)
Project
	Dependency 1
		Dependency 2
		Dependency 3
	Dependency 4
	Dependency 2

The problem is if I want to build them I need to build 2+3, then 1, 4 and 2 again and then the project. As you may see project 2 is a submodule of dependency 1 and also of project. I don't feel comfortable with this setup. What do you think? I've also thought about symlinks (though I'm mainly on Windows ), but with symlinks I'll lose the tight coupling of git submodules by SHA1-revision. I could also add Dependency 1-4 to my main project, not loading submodule 2-3 within dependency 1, but then the Project-Files of .NET for dependency1 may change depending if I clone Dependency1 on its own or if I clone my superproject.

Sometimes I have longer chains (project - submodule - subsubmodule - . ), so it could easily be that I clone a superproject and 10 subprojects, even though there are only 3-5 really different subprojects, rest would be duplicates.

How would you handle this? Git submodules? Something different? 

Thanks in advance, Harald

Next: Jens Lehmann
Message 1 of 4 in “Project structure of .NET-Projects using git submodule or something different”
  1. Harald HeiglJan 31, 2012
  2. Jens LehmannFeb 1, 2012
  3. AW: Project structure of .NET-Projects using git submodule or something differentHarald Heigl, Feb 1, 2012
  4. AW: Project structure of .NET-Projects using git submodule or something differentHarald Heigl, Feb 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.