class Raykit::MsBuild
def self.fix_msbuild_path
def self.fix_msbuild_path # if msbuild in not in the current path, # attempt to modify the path such that is it has_msbuild = false begin cmd = Raykit::Command.new("msbuild --version").run has_msbuild = true if (cmd.exitstatus != 0) rescue has_msbuild = false end if (!has_msbuild) if (Dir.exist?(msbuild_path)) #puts " added #{msbuild_path} to PATH for msbuild" ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}" end end end