Sha256: 4279e52cdc8d117089b80d1e197d67b6d41552da1fd60e542584809db50f8f2e
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
module Rake::Funnel::Support::MSBuild class BuildTool class << self def find return 'xbuild' unless Rake::Win32.windows? require 'win32/registry' %w(12.0 4.0 3.5 2.0).collect { |version| key = "SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\#{version}" begin Win32::Registry::HKEY_LOCAL_MACHINE.open(key) do |reg| candidate = File.join(reg['MSBuildToolsPath'] || '', 'msbuild.exe') next candidate if File.exists?(candidate) end rescue next end }.compact.first end end end end
Version data entries
4 entries across 4 versions & 1 rubygems