Hi everyone,
I’ve been working with ASP.NET for a while now, mostly on small to mid-sized applications. Recently, I started on a larger project and I’m finding it challenging to keep the folder structure and codebase clean as it grows.
Are there any standard practices or architectural patterns you follow to keep large ASP.NET (MVC or Core) projects maintainable and organized?
Would appreciate any tips, examples, or resources you recommend!
Thanks in advance,
Ramesh


Mahesh ChandRank #1 · 393.2K reputationPosted Jun 7, 2025, 9:27 AM EDT
Clean Architecture Project Layout:
MyApp.Domain/ +-- Entities/ +-- ValueObjects/ +-- Enums/ +-- Interfaces/ +-- Events/ +-- Exceptions/ +-- Specifications/ MyApp.Application/ +-- Commands/ +-- Queries/ +-- Handlers/ +-- Services/ +-- Interfaces/ +-- DTOs/ +-- Mappings/ +-- Validators/ MyApp.Infrastructure/ +-- Data/ ¦ +-- Configurations/ ¦ +-- Migrations/ ¦ +-- Repositories/ +-- Services/ +-- External/ +-- Caching/ MyApp.Web.API/ +-- Controllers/ +-- Middleware/ +-- Filters/ +-- Models/ ¦ +-- Requests/ ¦ +-- Responses/ +-- Configuration/ +-- Extensions/Prasad RaveendranRank #320 · 7.8K reputationPosted Jun 7, 2025, 8:37 PM EDT
https://learn.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/common-web-application-architectures
https://www.youtube.com/watch?v=VKc88NWf4lw
https://www.youtube.com/watch?v=1OLSE6tX71Y
I recommend first understanding your requirements thoroughly, then selecting the solution carefully. There's always a trade-off to consider