hoffi / gulp-msbuild

gulp-msbuild has moved to https://github.com/fluffynuts/gulp-msbuild.
MIT License
53 stars 44 forks source link

"end" event no longer emitted #68

Open aschulz01 opened 6 years ago

aschulz01 commented 6 years ago

Hi, using v0.3.3 the end event is properly emitted after msbuild ended. In the latest version the end event seems no longer working, also if the needed flag (emitEndEvent) in the options is set to true.

gulp.task('vsbuild:pilot', () => { gulp.src("./package/" + projectSettings.addinName + "Pilot/.csproj") .pipe(msbuild({ targets: ['Package'], toolsVersion: 14.0, emitEndEvent: true, properties: { OutputPath: '../../' + projectSettings.distFoldername + '/pilot/' }, fileLoggerParameters: 'LogFile=./build-pilot.log;Append;Verbosity=normal' })) .on('end', function() { console.log(".on('end', function() {"); // end is called with 0.3.3 of gulp-msbuild, but not with the latest version gulp.src(projectSettings.distFoldername + "/pilot/app.publish/" + pkg.version + '.0/.app') .pipe(gulp.dest(projectSettings.distFoldername + '/latest')); }); });