Skip to content

Commit

Permalink
Mono compiled nuget suffixed as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbattersby committed Feb 6, 2013
1 parent dba8417 commit 438bb0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ def UpdateNuSpecVersions(nuspecs, nuspec_version)
nuspecs.each do |nuspec|
puts "Updating #{Pathname.new(nuspec).basename}"
update_xml nuspec do |xml|
nuspec_id = xml.root.elements["metadata/id"].text

xml.root.elements["metadata/id"].text = !MONO ? nuspec_id : nuspec_id + "-mono"
xml.root.elements["metadata/version"].text = nuspec_version
local_dependencies = xml.root.elements["metadata/dependencies/dependency[contains(@id,'#{SOLUTION_NAME}')]"]
local_dependencies.attributes["version"] = "#{nuspec_version}" unless local_dependencies.nil?
Expand Down

0 comments on commit 438bb0a

Please sign in to comment.