Visual Studio 2017 中缺少任务运行器配置 [英] Task Runner Configuration Missing in Visual Studio 2017

查看:36
本文介绍了Visual Studio 2017 中缺少任务运行器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Visual Studio 2017 并打开了一个我一直在使用 Visual Studio 2015 的解决方案.似乎一切都很好,只是 VS 2017 中的任务运行器资源管理器没有检测到我的其中一个中的 package.json 文件项目,所以它给了我消息找不到任务运行器配置".我的 package.json 与我的解决方案文件位于同一文件夹中,我通过创建文件链接将其添加到正确的项目中.VS 2015 对此没有任何问题,我不确定 VS 2017 为何如此或如何修复它.

I just installed Visual Studio 2017 and opened a solution I had been working in with Visual Studio 2015. It seems like everything works great except that the task runner explorer in VS 2017 is not detecting the package.json file in one of my projects so it is giving me the message "No task runner configurations were found." My package.json is in the same folder as my solution file and I added it into the proper project by creating a file link. VS 2015 had no problem with this and I'm not sure why VS 2017 does or how to fix it.

推荐答案

我找到了 NPMVisual Studio Marketplace 中的 Task Runner 扩展 解决了我的问题.安装后,package.json 文件出现在 Task Runner Explorer 中.

I found the NPM Task Runner extension in the Visual Studio Marketplace that fixed my problem. After installing it, the package.json file showed up in Task Runner Explorer.

此外,不要忘记通过进入选项 > 外部 Web 工具并将 $(PATH) 向上移动到列表中,将您的系统路径设置为外部 Web 工具的最高优先级.我的 npm 脚本一直失败,直到我也这样做了.

Also, don't forget to set your system path to be the top priority for the External Web Tools by going into Options > External Web Tools and moving $(PATH) up the list. My npm scripts were failing until I did this as well.

这篇关于Visual Studio 2017 中缺少任务运行器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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