# Program.cs

*noun*

say it: **“PROH-gram DOT SEE-ESS”** **/ˈproʊɡræm dɒt ˌsiː ˈɛs/**

The file where an ASP.NET Core app is set up and started: its services, middleware and routes.

## What is **Program.cs**?

`Program.cs` is where an ASP.NET Core app starts. It registers services, builds the app, sets up the request pipeline and maps endpoints, all in a few lines.

```csharp
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddOpenApi();

var app = builder.Build();
app.MapGet("/", () => "Hello from Recipe Box!");
app.Run();
```

## In a sentence

- “I registered the product repository in **Program.cs**.”

Level: Novice · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/program-cs
