Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mxriverlynn/299462 to your computer and use it in GitHub Desktop.
Save mxriverlynn/299462 to your computer and use it in GitHub Desktop.
require 'albacore'
Albacore::log_level = :verbose
class MSBuild
attr_array :parameters
def run_command(command_name="", command_parameters="")
command_parameters += " #{@parameters.join(' ')}"
super(command_name, command_parameters)
end
end
task :default => [:build]
msbuild :build do |msb|
msb.solution = "src/example.sln"
msb.targets :clean, :build
msb.properties :configuration => :release
msb.parameters "/something", "/another:value", "/whatever=whoever"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment