Thursday, March 21, 2019

dotnet core directory structure

Hi /r/dotnet!

Recently I've been working on some large dotnet core projects, and I've noticed that there is a pattern of folder structures that people tend to use which looks like this:

🗀 src 🗀 ProjectName.LibNameA 🗀 bin 🗀 NamespaceFolder 📄 SomeClass.cs 🗀 obj 📄 ProjectName.LibNameA.csproj 📄 SomeOtherClass.cs 🗀 ProjectName.LibB ... etc 🗀 test ... etc 📄 ProjectName.sln 

This all looks reasonably neat, except that dotnet core will by default put the bin and obj folders at the same level as the csproj - therefore, alongside the namespace folders with actual code, and alongside the root level class files. Personally I think this looks really ugly and strange, and is particularly weird given that the whole lot is inside a folder called src.

My question is, is this the conventional way to structure dotnet projects? What do other people do? Personally I think that it would make more sense to have and src folder inside each project folder, alongside bin and obj, but I would also much prefer to follow convention if this is what everyone else is doing!

Thanks :)

dotnet core directory structure Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team