Sha256: dcc87f0cd3a9ad1e9e3933b4205a8fdf014a6774ad9d2f94a8dc0cf9a1862c88
Contents?: true
Size: 817 Bytes
Versions: 4
Compression:
Stored size: 817 Bytes
Contents
require 'ostruct' require 'albacore/config/netversion' require 'albacore/support/openstruct' module Configuration module AspNetCompiler include Configuration::NetVersion include Albacore::Configuration def self.aspnetcompilerconfig @config ||= OpenStruct.new.extend(OpenStructToHash).extend(AspNetCompiler) end def aspnetcompiler @config ||= AspNetCompiler.aspnetcompilerconfig yield(@config) if block_given? @config end def self.included(mod) self.aspnetcompilerconfig.use :net40 end def use(netversion) netversion = :net20 if netversion == :net35 # since .net 3.5 doesn't have aspnet_compiler use .net 2.0 self.command = File.join(get_net_version(netversion), "aspnet_compiler.exe") end end end
Version data entries
4 entries across 4 versions & 1 rubygems