Skip to content

A logger for msbuild that can be used as an optional dependency in a node project

License

Notifications You must be signed in to change notification settings

abe545/strider-msbuild-logger

Repository files navigation

strider-msbuild-logger

A logger for msbuild that can be used to prettify msbuild's output for strider. It outputs to stdout and stderr, and automatically colorizes its output (msbuild won't do so to buffers that are not consoles).

Example usage:

var spawn = require('child_process').spawn;

try {
  var logger = require('strider-msbuild-logger')();
} catch (err) {
  logger = null;
}

var args = ['project-path'];
if (logger) {
  // shut off the standard console logger, otherwise the output will be logged twice
  args.push('/noconsolelogger', '/logger:' + logger);
}

spawn('msbuild', args);

About

A logger for msbuild that can be used as an optional dependency in a node project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published