Visual Studio 2015 RC Gulp 任务运行程序未检测到任务 [英] Visual Studio 2015 RC Gulp task runner not detecting tasks

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

问题描述

我在 Visual Studio 2015 RC 中有一个带有单个默认任务的 Gulpfile.js.由于某种原因,它没有显示在 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.

我已将 gulp 添加到我的 package.json 文件中的 devDependencies 并保存.

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

推荐答案

在候选版本中,编辑 package.json 中的 devDependencies 然后保存不会导致包被自动恢复/添加正如我所期望的那样去项目.保存 package.json 后,包在解决方案资源管理器的 Dependencies 节点中的 NPM 下列出,但在包名称旁边带有标题 "not installed".如屏幕截图所示,手动调用 Restore Packages 会导致 Visual Studio 安装包.

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.

安装节点模块后,Task Runner Explorer 检测到 gulp 任务.

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天全站免登陆