visual-studiogulpgulp-watchtask-runner-explorer

visual studio (2015) Task Runner "Project Open" bound task is launched twice when open solution


I have a "watch" task that bound it to "project open" binding . but when open the solution , it is run twice ... my solution includes these projects:

and my watch task is:

gulp.task("watch-templates", [], function () {
var config = {
    baseDir: "WebUI/Templates",
    files: [
        // includes:
        "WebUI/Templates/**/*.html",
        // excludes:
        "!WebUI/Templates/**/*.min.html"
    ]
};
return gulp.watch(config.files, ["Build-templates"]);

});

thanks for time.


Solution

  • I have been experiencing the same problem.

    I found these two issues raised with MS but they seem to have limited the scope of the issue to when the Task Runner Explorer is set to auto-hide.

    I am facing this issue regardless of how my Task Runner Explorer Panel is positioned.

    Original Closed Ticket

    Resolved Ticket

    MS have said that Visual Studio 2015 Update 1 RTM solves the issue mentioned in these tickets but I haven't tried updating myself. Hopefully it will also solve the issue we are both encountering.