I’m learning ASP.NET Core and experimenting with:
Blazor WebAssembly
ASP.NET Core Web API
ASP.NET Core MVC
When following tutorials, I noticed that project structures differ a lot:
Some put almost everything in Program.cs
Others create separate layers (e.g., Services, Repositories, DTOs)
Some tutorials mix MVC and Web API controllers in the same project
To avoid confusion, I want to stick to practices that are aligned with Microsoft’s official guidance.
My questions:
Where can I find the official documentation or Microsoft Learn tutorials that define the recommended way of setting up these project types?
Are there standard project templates provided by .NET (via dotnet new) that represent best practices?
Does Microsoft recommend learning one approach first (e.g., MVC before Blazor), or are these frameworks intended for different scenarios?
I’m not asking which one is “best,” but rather how to find fact-based, official, and consistent resources so I can avoid bad practices.