Visual Studio 2015 RC Gulp task runner not detecting tasks

后端 未结 6 2305
予麋鹿
予麋鹿 2021-02-18 18:08

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

6条回答
  •  Happy的楠姐
    2021-02-18 18:24

    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.

    enter image description here

提交回复
热议问题