Class: AspnetCompile
- Inherits:
-
Object
- Object
- AspnetCompile
- Defined in:
- lib/rakeoff/aspnetcompile.rb
Instance Method Summary collapse
Instance Method Details
#execute(working_dir, framework_version) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rakeoff/aspnetcompile.rb', line 4 def execute(working_dir, framework_version) Dir.glob("#{working_dir}/**/Global.asax", File::FNM_CASEFOLD).each do |path| print_heading 'Aspnet Compile' path = File.dirname(path) puts "PreCompiling web project at #{path}".yellow sh "%windir%/microsoft.net/framework/#{framework_version}/aspnet_compiler.exe -p #{path} -v / -nologo" end end |