File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ require 'albacore'
6
6
PROPS = 'src/CommonAssemblyInfo.cs'
7
7
SLN = 'src/FluentNHibernate.sln'
8
8
CONFIG = 'config.json'
9
+ NUSPEC = 'src/FluentNHibernate.nuspec'
9
10
10
11
module Platform
11
12
@@ -34,7 +35,6 @@ module Platform
34
35
end
35
36
36
37
NH_VERSION = Platform.config['build']['nh_precompiler_switch']
37
- NUSPEC = Platform.config['nuspec']['filename']
38
38
39
39
# Albacore.configure do |config|
40
40
# config.log_level = :verbose
@@ -187,6 +187,8 @@ namespace :package do
187
187
puts "Updating #{NUSPEC}"
188
188
update_xml NUSPEC do |xml|
189
189
# Override the version number in the nuspec file with the one from this rake file (set above)
190
+ xml.root.elements["metadata/id"].text = config['id']
191
+ xml.root.elements["metadata/title"].text = config['title']
190
192
xml.root.elements["metadata/version"].text = get_version
191
193
192
194
xml.root.elements["metadata/dependencies/dependency[@id='NHibernate']"].attributes['version'] = config['nhibernate_version_interval']
Original file line number Diff line number Diff line change 13
13
},
14
14
"nuspec" :
15
15
{
16
- "filename" : " FluentNHibernate.nuspec" ,
16
+ "id" : " FluentNHibernate" ,
17
+ "title" : " FluentNHibernate" ,
17
18
"nhibernate_version_interval" : " 4.0" ,
18
19
"binaries_folder" : " net40"
19
20
}
You can’t perform that action at this time.
0 commit comments