Class: BradyW::MSBuild
- Includes:
- Dotframeworksymbolhelp, WindowsPaths
- Defined in:
- lib/msbuild.rb
Overview
Launches a build using MSBuild
Instance Attribute Summary collapse
-
#compile_version ⇒ Object
writeonly
Optional .NET compilation version (what should MSBuild compile code to, NOT what version of MSBuild to use).
-
#dotnet_bin_version ⇒ Object
Optional Version of the MSBuild binary to use.
-
#properties ⇒ Object
Optional Properties to pass along to MSBuild.
-
#release ⇒ Object
Optional Do a release build? By default, this is false.
-
#solution ⇒ Object
writeonly
Optional Solution file to build.
-
#targets ⇒ Object
writeonly
Optional Targets to build.
Attributes inherited from BaseTask
Method Summary
Methods included from Dotframeworksymbolhelp
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_version ⇒ Object
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 |
#properties ⇒ Object
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 |
#release ⇒ Object
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 |