โ Project organization
So coming from frotend web world where Im used to generally have a single huge project I have qouple of questions regarding code structure.
From my research it seems like a lot of bigger c# projects are generally split into smaller projects linked via root .sln, often utilizing shared class libraries and whatnot.
Is this the way? ๐
21 Replies
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
yeah I just ment that what it seems like c# projects split the code more into reusable bits
especially when multiple platforms are involved
one example is https://github.com/riperiperi/FreeSO/tree/master/TSOClient
GitHub
FreeSO/TSOClient at master ยท riperiperi/FreeSO
Re-implementation of The Sims Online. . Contribute to riperiperi/FreeSO development by creating an account on GitHub.
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
jesus that project solution is a obscene, there's such a thing as too much
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
a lot of those projects have one or two files in them, completely unecessary
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
yeah openra seems to be more reasonable about this https://github.com/OpenRA/OpenRA
GitHub
GitHub - OpenRA/OpenRA: Open Source real-time strategy game engine ...
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X. - Git...
yeah separate projects are generally used when you have different build type/targets or dependencies, other than that you rely on namespaces
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
in a somewhat more regular and easy to understand example you have like
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
Unit Tests are also always a separate project
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
my samples project just opens a console window which prints "RTFM" endlessly
๐
but yeah, its what I thought how it should be done
just wanted to have some reassurement
#if DEBUG
Unknown Userโข2y ago
Message Not Public
Sign In & Join Server To View
I've found myself more and more relying on
--debug
flags and actually shipping a fair bit of debug stuff, but I work on open source garbage hobby projects so it's fine for methanks guys tho