How to do it...

We can use Grunt in two ways:

Without using Visual Studio, through the command line, using Command Prompt, Node.js, npm, and installing and using all the modules you need to execute all the tasks we want to run.

Installing Visual Studio 2015 Community Edition and the Visual Studio extensions that allow us to run these tasks in the Visual Studio user interface.

In this recipe, we will use Grunt in the second of these two ways, using Visual Studio to compile LESS files to CSS files:

  1. To install Grunt, let's open package.json, or if we begin from an empty project, just add a package.json file.
  2. Let's type grunt in the devDependencies section. IntelliSense will help us to find the Grunt package:
  1. After that, we type the version. ...

Get ASP.NET Core MVC 2.0 Cookbook 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.