Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Grunt on 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 I can take advantage of VS 2015's support for Grunt. The project opens fine in VS 2015 and I can add a gruntfile.js to the project, but the task runner doesn't work. I assume there is additional configuration needed to make VS 2015 aware that my project is ready for Grunt, but I am not sure where that configuration resides. Does anyone know how to get this to work?

like image 621
John Craft Avatar asked May 06 '15 14:05

John Craft


People also ask

What is Gulp in asp net core?

Gulp is a toolkit that helps web developers automate many development tasks such as minification and file conversion. We can create tasks using NPM gulp dependencies.

How do I use task runner Explorer?

Right-click Gruntfile. js and select Task Runner Explorer from the context menu. The Task Runner Explorer window will open. Verify that clean shows under Tasks in the Task Runner Explorer.


1 Answers

  • Got to View menu, Other Windows, Task Runner Explorer.

  • Press the Refresh button in the Task Runner Explorer and make sure your tasks appear.

  • Right-click the desired task and select Run.

I got started with Stephen Walther's article here:

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

like image 178
hutchonoid Avatar answered Oct 05 '22 12:10

hutchonoid