Exploring ASP.NET Core
We will start by creating an empty ASP.NET Core project and explore how to enable it to serve simple web pages.
Creating an empty ASP.NET Core project
We will create an ASP.NET Core project that will show a list of suppliers from the Northwind database.
The dotnet
tool has many project templates that do a lot of work for you, but it can be difficult to know which works best for a given situation, so we will start with the empty website project template and then add features step by step so that you can understand all the pieces:
- Use your preferred code editor to open the
PracticalApps
solution and then add a new project, as defined in the following list:- Project template: ASP.NET Core Empty [C#] /
web
. For JetBrains Rider, select the project template named ASP.NET Core Web Application, and then set Type to Empty. - Project file and folder:
Northwind.Web
. - Solution file and folder:
PracticalApps
. - For...
- Project template: ASP.NET Core Empty [C#] /