When trying to publish projects from a solution using the below gulp task it working fine.
var publish = function (projectPath) {
return gulp.src([projectPath + "/**/*.csproj"])
.pipe(foreach(function (stream, file) {
return publishStream(stream, file);
}));
But when I pass an array with my project name in to gulp.src like below, publishing only one project and the task is exited. (here 'projects' is my array of projects)
return gulp.src(projects)
.pipe(foreach(function (stream, file) {
return publishStream(stream, file);
}));
What may be the reason
You have to provide the root folder as second parameter as shown below.
Please have a look at Why does gulp.src not like being passed an array of complete paths to files?.