@@ -77,17 +77,10 @@ namespace :source do
77
77
78
78
puts "The new version is #{info.version}"
79
79
end
80
-
81
- task :nhibernate_version, :nhibernate_version do |t,args|
82
- args.with_defaults :nhibernate_version => ENV['nhibernate_version'] || NH_VERSION
83
- end
84
80
85
81
task :choose_build_runner do |cmd, args|
86
82
task_name = 'source:' + (Platform.is_nix()? 'x': 'ms') + 'build'
87
83
88
- args.with_defaults :nhibernate_version => ('NH' + NH_VERSION.gsub('.', ''))
89
- puts 'Precompiler switch: ' + args[:nhibernate_version]
90
-
91
84
Rake::Task[task_name].reenable
92
85
Rake::Task[task_name].invoke(args)
93
86
end
@@ -98,16 +91,17 @@ namespace :source do
98
91
xb.verbosity = :minimal
99
92
xb.properties = {
100
93
:Configuration => "Release",
101
- :DefineConstants => args[:nhibernate_version] ,
94
+ :DefineConstants => 'NH' + NH_VERSION.gsub('.', '') ,
102
95
:TargetFrameworkVersion => Platform.config['build']['target_framework']
103
96
}
104
97
end
105
98
106
- msbuild :msbuild, [:nhibernate_version] => :nhibernate_version do |msbuild, args|
99
+ msbuild :msbuild, [:nhibernate_version] do |msbuild, args|
100
+ puts "Build switch #{args}"
107
101
msbuild.properties = {
108
- : Configuration => " Release" ,
109
- :DefineConstants => args[:nhibernate_version] ,
110
- : WarningLevel => 0
102
+ Configuration: : Release,
103
+ DefineConstants: 'NH' + NH_VERSION.gsub('.', '') ,
104
+ WarningLevel: 0
111
105
}
112
106
msbuild.targets [:Clean, :Build]
113
107
msbuild.solution = SLN
0 commit comments