Creating an empty ASP.NET project

Because Visual Studio Code is folder-based and not project-based like Visual Studio, it does not have a File | New Project option in its list of menus.

Scaffolding a project using Yeoman

Instead, you'll use Yeoman to scaffold a basic empty ASP.NET project. If you do not already have npm installed, complete the following steps:

  1. Open a new command prompt and navigate to the folder where you would like to create your project, for example, C:\MyBootstrap4Site.
  2. Enter the following command in the command prompt in order to install Yeoman and supporting tools:
            npm install -g yo grunt-cli generator-aspnet bower 
    
    

    After Yeoman and supporting tools have been installed, follow these steps:

  3. Enter the following command and press ...

Get Bootstrap for ASP.NET MVC - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.