Using Grunt in an ASP.NET MVC 5 Project in Visual Studio 2015

I have an existing ASP.NET MVC 5 project in Visual Studio 2013 that I would like to migrate to Visual Studio 2015 so that I can take advantage of VS 2015 support for Grunt. The project opens perfectly in VS 2015, and I can add the gruntfile.js project to the project, but the task runner does not work. I assume that there is an additional configuration necessary for VS 2015 to know that my project is ready for Grunt, but I'm not sure where this configuration is located. Does anyone know how to make this work?

+7
visual-studio asp.net-mvc visual-studio-2015 asp.net-mvc-5 asp.net-core-mvc
source share
2 answers
  • The View, Other Windows, and Task Explorer menus will appear.

  • Click the Refresh button in the task launch explorer and make sure your tasks are displayed.

  • Right-click the desired task and select "Run."

I started with an article by Stephen Walter:

ASP.NET 5 and AngularJS Part 1, Configuring Grunt, Uglify, and AngularJS

+4
source share

You need to create package.json and add grunt to devDependencies so that NPM can download it for you. See: http://www.shellmonger.com/?m=201502

+2
source share

All Articles