Sha256: 19add181204c52b989930ec4b4a5da5f01e378c5624313e09499c004af65e56a
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
module Rake::Funnel::Support::MSBuild class BuildTool class << self def find if Rake::Win32.windows? require 'win32/registry' %w{12.0 4.0 3.5 2.0}.collect { |version| msbuild = nil key = "SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\#{version}" begin Win32::Registry::HKEY_LOCAL_MACHINE.open(key) do |reg| candidate = "#{reg['MSBuildToolsPath']}\\msbuild.exe" msbuild = candidate if File.exists?(candidate) end rescue end msbuild }.compact.first else 'xbuild' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake-funnel-0.1.0.pre | lib/rake/funnel/support/msbuild/build_tool.rb |