.NET, Clean Architecture & Best Practices Notes
1. What is .NET?
- .NET is Microsoft’s cross-platform development framework.
- Supports C#, F#, VB.NET.
- Used for web apps, APIs, desktop apps, mobile (MAUI/Xamarin), cloud, games (Unity).
- Core runtime: CLR (Common Language Runtime) → executes compiled IL (Intermediate Language).
.NET 8 Key Points
- Unified platform for all app types.
- Performance improvements in ASP.NET Core & EF Core.
- Minimal APIs + improved Blazor tooling.
- Long-Term Support (LTS) release.
2. ASP.NET Core Overview
- Modern web framework under .NET.
- Supports MVC, Razor Pages, Web APIs, Blazor.
- Built-in Dependency Injection and Middleware Pipeline.
Request Pipeline example:
HTTP Request → Middleware (Auth, Logging, Routing) → Controller/Blazor Component → Response