lib/tasks/setup.rb in dev-2.1.91 vs lib/tasks/setup.rb in dev-2.1.92
- old
+ new
@@ -112,9 +112,21 @@
add_quiet "<%Text.replace_in_file('#{assemblyInfo}','#{current_version}','#{target_version}')%>"
end
end
end
}
+ Dir.glob('*.yml').each{|yml|
+ current_version=IO.read(yml).scan(/v:\"([\d.]+)\"/)[0]
+ if(!current_version.nil?)
+ puts "#{yml} current version=#{current_version}" if defined?(DEBUG)
+ if(current_version.include?('v:'))
+ target_version="v:\"#{VERSION}\""
+ if(current_version != target_version)
+ add "<%Text.replace_in_file('#{yml}','#{current_version}','#{target_version}')%>"
+ end
+ end
+ end
+ }
Dir.glob('**/*.csproj').each{|csproj|
current_version=IO.read(csproj).scan(/<PackageVersion>[\d.]+<\/PackageVersion>/)[0]
if(!current_version.nil?)
puts "#{csproj} current version=#{current_version}" if env.debug?
if(current_version.include?('<PackageVersion>'))
\ No newline at end of file