albacore 2.5.4 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 037fa6dbedf1e1239b915c4c550ac8f38fb28c13
4
- data.tar.gz: 03dd9255fa541cdc7c0aa4233391c3ff02bb5308
3
+ metadata.gz: 85542d66384696f189f24a0f21558d9bc09132be
4
+ data.tar.gz: 2123d8810cff6bff2c7593a12613f6b6978209e6
5
5
  SHA512:
6
- metadata.gz: 1fc9fd73a76056b48f398536be3d2a77de5dc69449a0218a6421a660cb2ca971784606b89db8309322992b532500adcaf76e5107004f0dff6f3487473aa3f0c8
7
- data.tar.gz: c49f9b56d17b9a554136976c7323297b31763ff027bbe8d000698fa852dde8534df9adfa38509370222be90d7dabbfa12a770c9f4866bf64bb6847e10268d1fb
6
+ metadata.gz: dfbbd01eb04114a1f60bbddaf4afe32df9194c6cfd42b3e35e9e75e961a05a69f95bac1c843f3601b530d2b97a633a82854e029d3a38e4369486b5235cb4d4b6
7
+ data.tar.gz: 452747578a565fcf4482082b745fcfd9f58d533acbbe96153df6f7d7bf02f0ad0eea5c9bf52631004e5869b9ad69a4242237e7c3619b0f24b8a1d37df3041f4e
@@ -195,7 +195,7 @@ end})
195
195
  elsif n.name == 'frameworkDepdendencies'
196
196
  n.children.reject { |n| n.text? }.each do |dep|
197
197
  m.add_framework_depdendency dep['id'], dep['version']
198
- end
198
+ end
199
199
  else
200
200
  # just set the property
201
201
  m.send(:"#{underscore n.name}=", n.inner_text)
@@ -86,7 +86,8 @@ module Albacore
86
86
  end
87
87
 
88
88
  def try_output_path conf
89
- path = @proj_xml_node.css("Project PropertyGroup[Condition*='#{conf}|'] OutputPath")
89
+ default_platform = @proj_xml_node.css('Project PropertyGroup Platform').first.inner_text || 'AnyCPU'
90
+ path = @proj_xml_node.css("Project PropertyGroup[Condition*='#{conf}|#{default_platform}'] OutputPath")
90
91
  # path = @proj_xml_node.xpath("//Project/PropertyGroup[matches(@Condition, '#{conf}')]/OutputPath")
91
92
 
92
93
  debug { "#{name}: output path node[#{conf}]: #{ (path.empty? ? 'empty' : path.inspect) } [albacore: project]" }
@@ -6,6 +6,7 @@ require 'albacore/cmd_config'
6
6
  require 'albacore/cross_platform_cmd'
7
7
  require 'albacore/logging'
8
8
  require 'albacore/facts'
9
+ require 'albacore/task_types/find_msbuild_versions'
9
10
 
10
11
  module Albacore
11
12
  module Build
@@ -188,26 +189,10 @@ module Albacore
188
189
  trace 'build tasktype finding msbuild.exe'
189
190
 
190
191
  msb = "msbuild_not_found"
191
- maxVersion = -1
192
- begin
193
- Win32::Registry::HKEY_LOCAL_MACHINE.open('SOFTWARE\Microsoft\MSBuild\ToolsVersions') do |toolsVersion|
194
- toolsVersion.each_key do |key|
195
- begin
196
- versionKey = toolsVersion.open(key)
197
- version = key.to_i
198
- if maxVersion < version
199
- maxVersion = version
200
- msb = "#{versionKey['MSBuildToolsPath']}\\msbuild.exe"
201
- end
202
- rescue
203
- error "failed to open #{key}"
204
- end
205
- end
206
- end
207
- rescue
208
- error "failed to open HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions"
209
- end
210
-
192
+ versions = Albacore.find_msbuild_versions
193
+ if versions.any?
194
+ msb = versions[versions.keys.max]
195
+ end
211
196
  CrossPlatformCmd.which(msb) ? msb : nil
212
197
  end
213
198
 
@@ -0,0 +1,25 @@
1
+ require 'rake'
2
+ module Albacore
3
+ def self.find_msbuild_versions
4
+ return nil unless ::Rake::Win32.windows?
5
+ require 'win32/registry'
6
+ retval = Hash.new
7
+ begin
8
+ Win32::Registry::HKEY_LOCAL_MACHINE.open('SOFTWARE\Microsoft\MSBuild\ToolsVersions') do |toolsVersion|
9
+ toolsVersion.each_key do |key|
10
+ begin
11
+ versionKey = toolsVersion.open(key)
12
+ version = key.to_i
13
+ msb = File.join(versionKey['MSBuildToolsPath'],'msbuild.exe')
14
+ retval[version] = msb
15
+ rescue
16
+ error "failed to open #{key}"
17
+ end
18
+ end
19
+ end
20
+ rescue
21
+ error "failed to open HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions"
22
+ end
23
+ return retval
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.5.4"
2
+ VERSION = "2.5.5"
3
3
  end
@@ -41,6 +41,15 @@
41
41
  <WarningLevel>3</WarningLevel>
42
42
  <DocumentationFile>bin\Release\Project.xml</DocumentationFile>
43
43
  </PropertyGroup>
44
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
45
+ <DebugType>pdbonly</DebugType>
46
+ <Optimize>true</Optimize>
47
+ <Tailcalls>true</Tailcalls>
48
+ <OutputPath>bin\Release\</OutputPath>
49
+ <DefineConstants>TRACE</DefineConstants>
50
+ <WarningLevel>3</WarningLevel>
51
+ <DocumentationFile>bin\Release\Project.xml</DocumentationFile>
52
+ </PropertyGroup>
44
53
  <ItemGroup>
45
54
  <Reference Include="mscorlib" />
46
55
  <Reference Include="FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.4
4
+ version: 2.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-06 00:00:00.000000000 Z
12
+ date: 2015-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -170,6 +170,7 @@ files:
170
170
  - lib/albacore/task_types/asmver/fs.rb
171
171
  - lib/albacore/task_types/asmver/vb.rb
172
172
  - lib/albacore/task_types/build.rb
173
+ - lib/albacore/task_types/find_msbuild_versions.rb
173
174
  - lib/albacore/task_types/nugets.rb
174
175
  - lib/albacore/task_types/nugets_authentication.rb
175
176
  - lib/albacore/task_types/nugets_pack.rb
@@ -421,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
421
422
  version: '0'
422
423
  requirements: []
423
424
  rubyforge_project: albacore
424
- rubygems_version: 2.4.5
425
+ rubygems_version: 2.4.5.1
425
426
  signing_key:
426
427
  specification_version: 4
427
428
  summary: Dolphin-safe and awesome Mono and .Net Rake-tasks