Reputation: 131
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?
Upvotes: 7
Views: 4241
Reputation: 875
You have to create a package.json and add grunt in the devDependencies so NPM can download it for you. See: http://www.shellmonger.com/?m=201502
Upvotes: 3
Reputation: 33305
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
Upvotes: 4