What is the role of Program.cs file in ASP.NET Core?

Program.cs file contains the application startup code. 

The main method of Program.cs file is the entry point of application.


From .NET 6.0, the startup class code is merged in Program.cs file and therefore there is no separate Startup.cs class.

 


Post a Comment

Previous Post Next Post