lib/tasks/setup.rb in dev-2.0.163 vs lib/tasks/setup.rb in dev-2.0.164
- old
+ new
@@ -46,7 +46,17 @@
add "git clone #{v} #{directory}"
end
end
}
end
+
+ if(defined?(VERSION))
+ #Text.replace_in_file('HelloLibrary.nuspec',/<version>[\d.]+<\/version>/,"<version>#{VERSION}</version>")
+ Dir.glob('*.nuspec').each{|nuspec|
+ add "<%Text.replace_in_file('#{nuspec}',/<version>[\d.]+<\/version>/,'<version>#{VERSION}</version>%>'"
+ }
+ Dir.glob('**/AssemblyInfo.cs').each{|assemblyInfo|
+ add "<%Text.replace_in_file('#{assemblyInfo}',Version\(\"[\d.]+\"\),'Version(\"#{VERSION}\")'"
+ }
+ end
end
end
\ No newline at end of file