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?
我在Visual Studio 2013中有一个现有的ASP.NET MVC 5项目,我想迁移到Visual Studio 2015,这样我就可以利用VS 2015对Grunt的支持。该项目在VS 2015中打开很好,我可以在项目中添加gruntfile.js,但任务运行器不起作用。我假设还需要其他配置才能让VS 2015知道我的项目已经为Grunt做好了准备,但我不确定该配置所在的位置。有谁知道如何使这个工作?
2 个解决方案
#1
4
-
Got to View menu, Other Windows, Task Runner Explorer.
得到View菜单,Other Windows,Task Runner Explorer。
-
Press the Refresh button in the Task Runner Explorer and make sure your tasks appear.
按Task Runner Explorer中的Refresh按钮,确保显示您的任务。
-
Right-click the desired task and select Run.
右键单击所需任务,然后选择“运行”。
I got started with Stephen Walther's article here:
我在这里开始撰写Stephen Walther的文章:
ASP.NET 5 and AngularJS Part 1, Configuring Grunt, Uglify, and AngularJS
ASP.NET 5和AngularJS第1部分,配置Grunt,Uglify和AngularJS
#2
2
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
你必须创建一个package.json并在devDependencies中添加grunt,以便NPM可以为你下载它。请参阅:http://www.shellmonger.com/?m = 201502
#1
4
-
Got to View menu, Other Windows, Task Runner Explorer.
得到View菜单,Other Windows,Task Runner Explorer。
-
Press the Refresh button in the Task Runner Explorer and make sure your tasks appear.
按Task Runner Explorer中的Refresh按钮,确保显示您的任务。
-
Right-click the desired task and select Run.
右键单击所需任务,然后选择“运行”。
I got started with Stephen Walther's article here:
我在这里开始撰写Stephen Walther的文章:
ASP.NET 5 and AngularJS Part 1, Configuring Grunt, Uglify, and AngularJS
ASP.NET 5和AngularJS第1部分,配置Grunt,Uglify和AngularJS
#2
2
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
你必须创建一个package.json并在devDependencies中添加grunt,以便NPM可以为你下载它。请参阅:http://www.shellmonger.com/?m = 201502