Visual Studio 2015 RC Gulp任务运行器没有检测到任务 [英] Visual Studio 2015 RC Gulp task runner not detecting tasks

查看:245
本文介绍了Visual Studio 2015 RC Gulp任务运行器没有检测到任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2015 RC中,我有一个Gulpfile.js,只有一个默认任务。出于某种原因,它没有出现在 Task Runner Explorer中



我已经在devDependencies中增加了一些gulp我的 package.json 文件并保存了它。 应聘者,编辑 package.json 中的devDependencies,然后保存不会导致软件包按我的预期自动恢复/添加到项目中。在保存 package.json 后,软件包在解决方案资源管理器中的依赖项节点下的NPM下列出,但标题为未安装包名称旁边。如屏幕截图所示,手动调用 Restore Packages ,使Visual Studio安装pacakges。



节点模块安装后,吞吐任务被 Task Runner Explorer 检测到。



我希望这可以帮助其他人。




I have a Gulpfile.js in Visual Studio 2015 RC with a single default task. For some reason it is not showing up in the Task Runner Explorer.

I had added gulp to the devDependencies in my package.json file and saved it.

解决方案

In the release candidate, editing the devDependencies in package.json and then saving does not result in the packages being automatically restored/added to the project as I had expected. After saving package.json the packages were listed under NPM in the Dependencies node in Solution explorer, but with a caption "not installed" next to the package names. Manually invoking Restore Packages, as shown in the screenshot, causes Visual Studio to install the pacakges.

After the node modules had been installed the gulp tasks were detected by the Task Runner Explorer.

I hope this helps someone else.

这篇关于Visual Studio 2015 RC Gulp任务运行器没有检测到任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆