|
17 | 17 | end
|
18 | 18 |
|
19 | 19 | desc "Compiles solution and runs unit tests"
|
20 |
| -task :default => [:clean, :assembly_info, :nuget_restore, :compile, :test, :publish, :package] |
| 20 | +task :default => [:clean, :assembly_info, :compile, :test, :publish, :package] |
21 | 21 |
|
22 | 22 | desc "Executes all Xunit tests"
|
23 | 23 | task :test => [:xunit]
|
24 | 24 |
|
25 | 25 | desc "Compiles solution and runs unit tests for Mono"
|
26 |
| -task :mono => [:clean, :assembly_info, :nuget_restore_mono, :compilemono, :testmono] |
| 26 | +task :mono => [:clean, :assembly_info, :compilemono, :testmono] |
27 | 27 |
|
28 | 28 | desc "Executes all tests with Mono"
|
29 | 29 | task :testmono => [:xunitmono]
|
|
48 | 48 | end
|
49 | 49 |
|
50 | 50 | desc "Compile solution file"
|
51 |
| -msbuild :compile => [:assembly_info] do |msb| |
| 51 | +msbuild :compile => [:nuget_restore, :assembly_info] do |msb| |
52 | 52 | msb.properties = { :configuration => CONFIGURATION, "VisualStudioVersion" => get_vs_version() }
|
53 | 53 | msb.targets :Clean, :Build
|
54 | 54 | msb.solution = SOLUTION_FILE
|
55 | 55 | end
|
56 | 56 |
|
57 | 57 | desc "Compile solution file for Mono"
|
58 |
| -xbuild :compilemono => [:assembly_info] do |xb| |
| 58 | +xbuild :compilemono => [:nuget_restore_mono, :assembly_info] do |xb| |
59 | 59 | xb.solution = SOLUTION_FILE
|
60 | 60 | xb.properties = { :configuration => CONFIGURATIONMONO, "TargetFrameworkProfile" => "", "TargetFrameworkVersion" => "v4.5" }
|
61 | 61 | end
|
|
168 | 168 | nupkgs.each do |nupkg|
|
169 | 169 | puts "Pushing #{nupkg}"
|
170 | 170 | nuget_push = NuGetPush.new
|
171 |
| - nuget_push.apikey = args.api_key if !args.empty? |
| 171 | + nuget_push.apikey = args.api_key if !args.empty? |
172 | 172 | nuget_push.command = "tools/nuget/NuGet.exe"
|
173 | 173 | nuget_push.package = "\"" + nupkg + "\""
|
174 | 174 | nuget_push.create_only = false
|
@@ -252,8 +252,6 @@ def get_assembly_version(file)
|
252 | 252 | return result[1] if !result.nil?
|
253 | 253 | end
|
254 | 254 | end
|
255 |
| - |
256 |
| - '' |
257 | 255 | end
|
258 | 256 |
|
259 | 257 | def get_vs_version()
|
|
0 commit comments