Setting Up the Environment
- Visual Studio 2019
- .NET Core 3.1 SDK
Creating your first ASP.NET Core 3.1 application in Visual Studio 2019
Step 1 : Start Visual Studio 2019. You will be presented with a page that allows you to clone or checkout code or open an existing project. Here, we are interested in creating a new project:
Step 2 : The same Create a new project page pops up if you click on Create a new project or Continue without code and then File | New | Project:
Step 3 : Select ASP.NET Core Web Application and click Next.
Step 4 : Next, you can name your project and configure its location:
Step 5 : You are now able to select your specific web application type, which is the ASP.NET Core version. Choose the Empty template and leave the Enable Docker Support, and Configure for HTTPS options unchecked. Also, leave Authentication set to No Authentication:
Step 6 : After the sample application project has been generated, a project start page will be displayed. Here, you can configure additional options, such as connected services (Application Insights, and more) and publishing targets (Microsoft Azure App Services, IIS, FTP, Folder, and more). Leave everything unchanged:
Step 7 : Now, you can start your application by pressing F5 or clicking on Debug > Start Debugging.