Class: BradyW::MSBuild

Inherits:
BaseTask
  • Object
show all
Includes:
Dotframeworksymbolhelp, WindowsPaths
Defined in:
lib/msbuild.rb

Overview

Launches a build using MSBuild

Instance Attribute Summary collapse

Attributes inherited from BaseTask

#name, #unless

Method Summary

Methods included from Dotframeworksymbolhelp

#convertToNumber

Instance Attribute Details

#compile_version=(value) ⇒ Object

Optional .NET compilation version (what should MSBuild compile code to, NOT what version of MSBuild to use). Defaults to :v4_5). Other options are :v2_0, :v3_5, :v4_0



24
25
26
# File 'lib/msbuild.rb', line 24

def compile_version=(value)
  @compile_version = value
end

#dotnet_bin_versionObject

Optional Version of the MSBuild binary to use. Defaults to :v4_5 Other options are :v2_0, :v3_5, :v4_0



17
18
19
# File 'lib/msbuild.rb', line 17

def dotnet_bin_version
  @dotnet_bin_version
end

#propertiesObject

Optional Properties to pass along to MSBuild. By default ‘Configuration’ and ‘TargetFrameworkVersion’ will be set based on the other attributes of this class.



28
29
30
# File 'lib/msbuild.rb', line 28

def properties
  @properties
end

#releaseObject

Optional Do a release build? By default, this is false.



31
32
33
# File 'lib/msbuild.rb', line 31

def release
  @release
end

#solution=(value) ⇒ Object

Optional Solution file to build



20
21
22
# File 'lib/msbuild.rb', line 20

def solution=(value)
  @solution = value
end

#targets=(value) ⇒ Object

Optional Targets to build. Can be a single target or an array of targets



13
14
15
# File 'lib/msbuild.rb', line 13

def targets=(value)
  @targets = value
end