File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
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
@@ -186,7 +186,8 @@ namespace :package do
186
186
187
187
puts "Updating #{NUSPEC}"
188
188
update_xml NUSPEC do |xml|
189
- # Override the version number in the nuspec file with the one from this rake file (set above)
189
+ xml.root.elements["metadata/id"].text = config['id']
190
+ xml.root.elements["metadata/title"].text = config['title']
190
191
xml.root.elements["metadata/version"].text = get_version
191
192
192
193
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.Net35.nuspec" ,
16
+ "id" : " FluentNHibernate.Net35" ,
17
+ "title" : " FluentNHibernate for .Net 3.5" ,
17
18
"nhibernate_version_interval" : " [3.3.1.4000,4.0)" ,
18
19
"binaries_folder" : " net35"
19
20
}
You can’t perform that action at this time.
0 commit comments