lib/tasks/build.rb in dev-2.0.160 vs lib/tasks/build.rb in dev-2.0.161

- old
+ new

@@ -2,10 +2,11 @@ desc 'performs build commands' task :build do Tasks.execute_task :build;end SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln') +NUGET_FILES=FileList.new('**/*.nuspec') class Build < Array def update changed = true @@ -20,21 +21,18 @@ if(!build_commands.nil?) build_commands.each{|c| self.add c } end - #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" - # puts "MSBUILD[:#{vs_version}]='PATH_TO_MSBUILD' may be used to specify msbuild path." - #end + } + + NUGET_FILES.each{|nuget_file| + build_commands = Nuget.get_build_commands nuget_file + if(!build_commands.nil?) + build_commands.each{|c| + self.add c + } + end } end end end \ No newline at end of file