Node module for work with msbuild
npm install node-msbuild``js
var msbuild = require('node-msbuild');
// Initialize builder
this.builder = new msbuild.MsBuild({
MsBuildPath: "c:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\msbuild.exe"
});
// Build options
var options = {
Rebuild: false,
SolutionFile: "MySolution.sln",
// ... etc
};
//Run builds
builder.build(options)
.then(function(results){
console.log("Called params : " + results.CmdLine);
console.log("Result code: " + results.Code);
});
``
Type: string
Full path to the the solution file.
Build target. If empty, whole solution will be built.
Rebuild solution.
Determines if the build process output should be piped into stdio.
Determines if only error output should be visible.
Build configuration that should be used
Selected build platform
Determines if project references will also be built
Determines if the MS Build logo will be shown before build
Determines if there should be a deploy after the build
Publish profile name used when deploying