Sha256: 92cdd5113a1d84461a2182f620dc8023b5de69b059ad273fff7a82d7a61f0931
Contents?: true
Size: 1.72 KB
Versions: 2
Compression:
Stored size: 1.72 KB
Contents
module Dev class Paths < Hash def initialize ["v4.0.30319","v3.5","v3.0","v2.0.50727"].each { |v| f="C:/WINDOWS/Microsoft.NET/Framework/#{v}/MSBuild.exe" self[:msbuild]=f if File.exists?(f) && self[:msbuild].nil? f="C:/WINDOWS/Microsoft.NET/Framework/#{v}/RegAsm.exe" self[:regasm]=f if File.exists?(f) && self[:regasm].nil? } initialize_nunit initialize_vs end def initialize_vs dev="C:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" self[:vs8]=dev if File.exists?(dev) && self[:vs8].nil? dev="C:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe" self[:vs9]=dev if File.exists?(dev) && self[:vs9].nil? dev="C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/devenv.exe" self[:vs10]=dev if File.exists?(dev) && self[:vs10].nil? dev="C:/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE/devenv.exe" self[:vs11]=dev if File.exists?(dev) && self[:vs11].nil? dev="C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/devenv.exe" self[:vs12]=dev if File.exists?(dev) && self[:vs12].nil? end def initialize_nunit puts_debug "Paths::initialize_nunit" nunit="" nunitx86="" ["2.6.0.12051/bin","2.5.10.11092/bin/net-2.0"].each{ |v| if nunit.length==0 Dir.glob("#{Dev::Environment.dev_root}/dep/*/NUnit/#{v}/nunit-console.exe").each{|f| if nunit.length==0 puts_debug("NUnit file located: #{f}") nunitx86=f.gsub("nunit-console.exe","nunit-console-x86.exe") nunit=f if(File.exists?(nunitx86)) nunitx86="" if(!File.exists?(nunitx86)) end } end } self[:nunit]=nunit self[:nunitx86]=nunitx86 end end # class Paths end # module Dev
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev-1.0.214 | lib/dev/Paths.rb |
dev-1.0.213 | lib/dev/Paths.rb |