This is a sample app, trying to demonstrate the smallest ASP.NET Core Minimal API, a "Hello World!" example. The *Program.cs** is only three lines of code. **Program.cs**: ```csharp var app = WebApplication.CreateBuilder(args).Build(); app.MapGet("/", () => "Hello World!"); app.Run(); ```
Expand to see *Sample.cspoj* and *launchSettings.json* files **Sample.csproj**: ```xml net7.0 enable enable ``` **Properties/launchSettings.json**: ```json { "$schema": "https://json.schemastore.org/launchsettings.json", "profiles": { "http": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "http://localhost:5029", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7263;http://localhost:5029", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } } } ``` > **Note** > The *appsettings.json* file is optional ![image](https://user-images.githubusercontent.com/7679720/216140158-3af1d774-84b3-45fe-b0e4-8732b58c7e3b.png)
Run the app: ![image](https://user-images.githubusercontent.com/7679720/216138994-f260d870-04eb-4b5d-ba89-5259519fce65.png)