Create an ASP.NET Core MVC app with Visual Studio Code

This series of tutorials teaches you the basics of building an ASP.NET Core MVC web app using Visual Studio Code.

This tutorial teaches ASP.NET Core MVC web development with controllers and views. Razor Pages is a feature of the ASP.NET Core MVC framework that makes building and testing web UI easier and more productive. You can use Razor pages alongside controllers and views in the same project.

We recommend you try the Razor Pages tutorial before the MVC/Controller/Views version. The Razor Pages tutorial:

  • Is the preferred approach for new application development.
  • Is easier to follow.
  • Covers more features.

If you choose this tutorial over the Razor Pages version, let us know why in this GitHub issue.

  1. Get started
  2. Add a controller
  3. Add a view
  4. Add a model
  5. Work with SQLite
  6. Controller methods and views
  7. Add search
  8. Add a new field
  9. Add validation
  10. Examine the Details and Delete methods