node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

grunt-xbuild

grunt-xbuild Build Status NPM version Dependencies

xbuild runner for grunt

Getting Started:

The task requires that the mono mdk be installed and the 'xbuild' command available in the path

installing:

npm install grunt-xbuild --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-xbuild');

XBuild task

builds and execs the xbuild command on the shell

xbuild: {
  build: {
    options: {
      sln_file: "MySolution.sln", // solution to target 
      configuration: "Release", // optional configuration (e.g. Debug, Release), defaults to Release 
      target_framework: "v4.0", // optional, defaults to 'v4.0' 
      properties: {
        // <key: value> list of extra properties to be included e.g. 
        outputPath: "./buildOutput/" // expands to /p:outputPath=./buildOutput/ 
      }
    }
  }
}