Class: AlpacaBuildTool::MSBuild

Inherits:
Tool
  • Object
show all
Defined in:
lib/alpacabuildtool/tools/msbuild.rb

Overview

MSBuild provides access to MSBuild.exe tool

Instance Attribute Summary

Attributes included from Log

#log

Instance Method Summary collapse

Methods inherited from Tool

#call, #initialize

Constructor Details

This class inherits a constructor from AlpacaBuildTool::Tool

Instance Method Details

#build(file, debug = false) ⇒ Object

Build *.sln file

file

solution file with absolute path

debug

set to build with debug configuration


12
13
14
15
16
17
# File 'lib/alpacabuildtool/tools/msbuild.rb', line 12

def build(file, debug = false)
  config = @configuration['options'].dup
  config['Property'] ||= {}
  config['Property']['Configuration'] = debug ? 'Debug' : 'Release'
  call([config, file])
end