require_relative('msbuild.rb') class Build < Array def update Dir.glob('*.gemspec'){|gemspec| add "gem build #{gemspec}" } Dir.glob('**/*.sln'){|sln_file| vs_version=MSBuild.get_vs_version(sln_file) if(MSBuild.has_version?(vs_version)) MSBuild.get_configurations(sln_file).each{ |configuration| MSBuild.get_platforms(sln_file).each{|platform| #Console.debug "configuration='#{configuration}', platform='#{platform}'" self.add "\"#{MSBuild.get_version(vs_version)}\" \"#{sln_file}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\"" } } else "puts version #{vs_version} not found for MsBuild" end } end end