Open a new command prompt and run the following commands:
dotnet new webApp -o myWebApp cd myWebApp
dotnet command creates a
new application of type
webApp for you. The
-o parameter creates a directory named
myWebApp where your app is stored, and populates it with the required files. The
cd myWebApp command puts you into the newly created app directory.
Several files were created in the
myWebApp directory, to give you a simple web application that is ready to run.
Startup.cs contains all the settings and configurations. The
myWebApp/Pages directory contains some web pages for the application.