C
C#โ€ข2y ago
Proto

โœ… 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
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Proto
Protoโ€ข2y ago
yeah I just ment that what it seems like c# projects split the code more into reusable bits especially when multiple platforms are involved
Proto
Protoโ€ข2y ago
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
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
jesus that project solution is a obscene, there's such a thing as too much
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
a lot of those projects have one or two files in them, completely unecessary
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Proto
Protoโ€ข2y ago
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...
Doombox
Doomboxโ€ข2y ago
yeah separate projects are generally used when you have different build type/targets or dependencies, other than that you rely on namespaces
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
in a somewhat more regular and easy to understand example you have like
SomeProject.Common - Class library
SomeProject.Server - Backend app
SomeProject.Client - Frontend app
SomeProject.Common - Class library
SomeProject.Server - Backend app
SomeProject.Client - Frontend app
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
Unit Tests are also always a separate project
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
my samples project just opens a console window which prints "RTFM" endlessly goodthinking
Proto
Protoโ€ข2y ago
๐Ÿ˜„ but yeah, its what I thought how it should be done just wanted to have some reassurement
Doombox
Doomboxโ€ข2y ago
#if DEBUG pepetense
Unknown User
Unknown Userโ€ข2y ago
Message Not Public
Sign In & Join Server To View
Doombox
Doomboxโ€ข2y ago
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 me
Proto
Protoโ€ข2y ago
thanks guys tho
Want results from more Discord servers?
Add your server
More Posts