Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mxriverlynn/190510 to your computer and use it in GitHub Desktop.
Save mxriverlynn/190510 to your computer and use it in GitHub Desktop.
class Hash
def build_parameters
option_text = ''
self.each do |key, value|
option_text << "#{key}\=#{value};"
end
option_text.chop
end
end
class Array
def build_parameters
option_text = ''
self.each do |value|
option_text << "#{value};"
end
option_text.chop
end
end
def build(solution)
cmd = "\"#{@path_to_exe}\" \"#{solution}\""
cmd << " /property:#{@properties.build_parameters}" if @properties.length>0
cmd << " /target:#{@targets.build_parameters}" if @targets.length>0
system cmd
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment