Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

MSBuild Integration

JeremySkinner edited this page Sep 13, 2010 · 5 revisions

You can use MSBuild to compile a Visual Studio solution / project file making use of the calling the msbuild runnable:

target compile:
  msbuild(file: "path/to/somefile.sln")

This will execute MSBuild against a particular solution file using the default options. You can customise these options by setting properties on the msbuild object using Boo’s object initializer syntax

target compile:
  msbuild(file: "path/to/somefile.sln", configuration: "release")

Options available are:

Option Description Default value Type
file (Required) The path to the solution/project file none string
toolPath The path to msbuild.exe windir/Microsoft.NET/Framework/v3.5/msbuild.exe string
configuration The configuration that should be used when building debug string
targets The targets that should be called in the MSBuild file build Array of strings
verbosity How verbose the MSBuild output should be minimal string
properties Custom properties to pass to MSBuild none Hash
Clone this wiki locally