Ich habe kein konkretes Beispiel gefunden, wie man das Publishing über eine Gulp-Aufgabe durchführt. Jeder hat eine Idee?Gulp Aufgabe zur Webbereitstellung von Visual Studio
So versuche ich im Moment.
gulp.task("Deploy-To-Azure", function() {
var targets = ["Build"];
console.log("Publishing to 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"}));
}));
});
Aber es sieht so aus, als ob das Projekt gebaut, aber nicht bereitgestellt wird. Ich denke, meine Eigenschaften sind nicht vollständig. Irgendwelche Ideen werden geschätzt. Danke