Visual Studio任务运行器资源管理器扩展不能识别gulpfile.js [英] Visual Studio Task Runner Explorer Extension does not recognize gulpfile.js

查看:463
本文介绍了Visual Studio任务运行器资源管理器扩展不能识别gulpfile.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



下面是我采用的步骤:
1 )下载node.js
2)运行:npm从命令行安装gulp -g
3)下载并安装任务运行器
4)关闭并重新打开visual studio

现在我可以在Visual Studio中访问任务运行器窗口,但是当我右键单击我的gulpfile.js时,没有选项可以在任务运行器资源管理器中打开它。



所有帮助表示感谢,提前致谢。

解决方案

我发现它没有'如果您的项目位于解决方案文件夹将项目移出解决方案文件夹并立即识别。请注意,通过解决方案文件夹我的意思是我们在Visual中创建的虚拟文件夹Studio根据上面的链接组织大型项目,而不是任何你在文件系统中将你的项目拖入其中的文件夹。



所以这显然是一个查找问题/监督关于.sln文件。


I am trying to use the VS Task Runner Explorer to run gulp as a step during the build.

Here are the steps I took: 1) Downloaded node.js 2) ran: npm install gulp -g from the command line 3) downloaded and installed task runner 4) closed and reopened visual studio

I can now access the task runner window in visual studio but when I right click on my gulpfile.js, there is no option to open it in the task runner explorer.

All help is appreciated, thanks in advance.

解决方案

I've found it doesn't work if you have the project in a Solution Folder. Move the project out of the solution folder and it is instantly recognized. Move it back and it disappears again.

Note that by Solution Folder I mean the virtual folders we create in Visual Studio to organize larger projects, as per the link above, not whatever folder you happen to plunk your project into on the file system.

So it's obviously a lookup problem/oversight with respect to the .sln file.

这篇关于Visual Studio任务运行器资源管理器扩展不能识别gulpfile.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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