Learn
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.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.