Program.cs

The source file where a .NET application starts, usually holding top-level statements that build and run the host.

In more detail

In a web API it creates the WebApplication builder, registers services, configures the middleware pipeline and maps endpoints. Integration tests refer to its generated Program class through WebApplicationFactory<Program>.

Related terms

Taught in

References