grunt-xbuild

xbuild runner task for grunt

Usage no npm install needed!

<script type="module">
  import gruntXbuild from 'https://cdn.skypack.dev/grunt-xbuild';
</script>

README

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/
      }
    }
  }
}