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'));
});
});
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')); }); });