msbuild - Gulp task to web deploy from Visual Studio -


i have not found concrete example on how publishing via gulp task. has idea?

this how i'm trying @ moment.

gulp.task("deploy-to-azure", function() { var targets = ["build"]; console.log("publishing azure"); return gulp.src(["./src/feature/accounts/code"]) .pipe(foreach(function (stream, file) {     return stream       .pipe(debug({ title: "building project:" }))       .pipe(msbuild({           targets: targets,           configuration: "azure",           logcommand: false,           verbosity: "verbose",           stdout: true,           erroronfail: true,           maxcpucount: 0,           toolsversion: 14.0,           properties: {               deployonbuild: "true",               deploydefaulttarget: "web deploy",               webpublishmethod: "filesystem",               deleteexistingfiles: "false",               _finddependencies: "false",               configuration: "release"           }       }))     .pipe(debug({title: "finished building project"})); })); 

});

but looks project built not deployed. think properties not complete. ideas appreciated. thank

i attempted use same msbuild properties commandline , received following error:

>c:\windows\microsoft.net\framework\v4.0.30319\msbuild /p:deployonbuild=true /p:webpub lishmethod=filesystem /p:deleteexistingfiles=false /p:deploydefaulttarget="web deploy" c:\program files (x86)\msbuild\microsoft\visualstudio\v14.0\web\microsoft.web.p ublishing.targets(4449,11): error msb4057: target "web deploy" not exi st in project. [c:\users\me\documents\visual studio 2015\projects\w ebapplication12\webapplication12.csproj] 

unless you've created custom msbuild target named "web deploy". won't work.

when remove /p:deploydefaulttarget="web deploy" property webdeploy package created in /obj/[configuration]/package folder.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -