Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

You can run the ASP.NET Compiler on your web projects.

desc "Compile the website"
aspnetcompiler :compile => [:build] do |cmd|
  cmd.physical_path = "path/to/webapp"
  cmd.target_path = "path/to/target"
  cmd.updateable
  cmd.force
end

Required Parameters

Physical Path

Specifies the physical path of the application to be compiled. If this parameter is missing, the IIS metabase is used to locate the application.

physical_path = "path/to/webapp"

Virtual Path

The virtual path of the application to be compiled. If the Physical Path specified, the physical path is used to locate the application. Otherwise, the IIS metabase is used, and the application is assumed to be in the default site.

virtual_path = "/foo"

Optional Parameters

Target Path

Specifies the physical path to which the application is compiled. If not specified, the application is precompiled in-place.

target_path = "path/to/target"

Updateable

The precompiled application will be updateable.

updateable

Force

Overwrite the target directory if it already exists, existing contents are lost.

force

Clean

The application will be built clean. Any previously compiled components will be recompiled.

clean

Debug

The strong-name assembly will allow partially trusted callers.

debug

Delay Sign

The assembly is not fully signed when created.

delay_sign

Fixed Names

The compiled assemblies will be given fixed names.

fixed_names

No Logo

Hide the startup banner.

no_logo

Guidance

(none)

Clone this wiki locally