Learn
Data Projects
Inspect the Program File
The file Program.cs with the Main()
method is the starting point for a .NET Core program. It calls the CreateHostBuilder(args)
method and passes in any arguments from the command line. Method chaining is used to Build()
the web site and Run()
it. CreateHostBuilder()
uses the Host
service to configure a web site using a webBuilder
that calls the Startup()
class.
Instructions
1.
The file Program.cs is open. Look for the Main()
, CreateHostBuilder()
, and Build()
methods.