ASP.NET Core Interview Question #1
What is ASP.NET Core?
ASP.NET Core Fundamentals Junior Beginner
Quick Interview Answer
ASP.NET Core is Microsoft's cross-platform, open-source framework for building modern web applications, REST APIs, real-time applications, and backend services on .NET.
Detailed Explanation
ASP.NET Core is Microsoft's cross-platform, open-source framework for building modern web applications, REST APIs, real-time applications, and backend services on .NET.
It is designed around a lightweight and modular request pipeline. Applications can use built-in dependency injection, configuration, logging, routing, authentication, authorization, caching, and other framework services without depending on the older System.Web model.
ASP.NET Core applications can run on Windows, Linux, and macOS and are commonly hosted behind IIS, Nginx, Apache, in containers, or directly with the Kestrel web server.
Code Example
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello ASP.NET Core!");
app.Run();