{
  "id": 6969508,
  "title": "Your first ASP.NET App: Introduction",
  "url": "https://urgent.news/2026/09/12/your-first-asp-net-app-introduction",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-12T18:32:11.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/__f5cd865bec2/your-first-aspnet-app-introduction-3oo6"
  },
  "original_language": "en",
  "account": "This tutorial guides you through the process of building your first ASP.NET Service application. To get started, ensure you have an IDE such as Visual Studio or JetBrains Rider installed, along with .NET version 10 and a basic understanding of C# programming language.\n\nBegin by creating a new project within a solution. Name your project, for instance, ExampleProject. Opt for the Web API template and proceed to open the Program.cs file. Inside the Program.cs file, you will see a code snippet where the WebApplication object is created using the CreateBuilder method, passing the command-line arguments (args).\n\nThe code then adds services to the container, where you can configure OpenAPI documentation by calling the AddOpenApi method. Next, the HTTP request pipeline is configured by building the application with the builder object. If the application is in development mode, it maps the OpenAPI documentation for easy testing. The application is also configured to redirect HTTP requests to HTTPS.\n\nTo add some variety to your weather forecast, a list of adjectives describing the weather is created and used to generate a forecast ranging from mild to sweltering temperatures. This forecast is then returned as a response when accessing the '/weatherforecast' endpoint.\n\nTo remove unnecessary code, such as the weatherforecast endpoint, you can simplify the app's configuration. Import the Scalar.AspNetCore package by running the command 'dotnet add package Scalar.AspNetCore'.\n\nNow, update the app to map a scalar API reference. With the base configuration in place, you can start writing your first API endpoint. Simply map a GET request to the root path ('/') and return the string 'Hello World!'. Once your application is running, open a browser and navigate to 'localhost:[your port]/scalar'. Press the 'Test Request' button to send a request and verify that the endpoint responds with 'Hello World!'.",
  "summary": "Hello! In this tutorial we will build your own ASP.NET Service! Requirements IDE like Visual Studio/JetBrains Rider .NET >= 10 Base C# skill Creating project New Solution -> Web Write your project name, as example - ExampleProject Select Web API Create and open Program.cs First codes When you created project and opened Program.cs, the image will like this var builder = WebApplication .…",
  "key_points": [
    "Install Visual Studio or JetBrains Rider with .NET version 10",
    "Create new Web API project named ExampleProject",
    "Add OpenAPI documentation and configure HTTP pipeline"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}