Pre-Compile ASP.NET Websites

Hi guys

During our old process of deployment (way before Octopus), we would call the ASP.NET compiler via .bat script to precompile the websites to their destination directory. Per the discussion here,, it would be great to have a check-box option to allow Octopus to call the compiler before placing the website files at their final destination directory. Is this a feature you may consider adding?

Thx in advance :slight_smile:


I’ve added a step in PostDeploy.ps1 to compile the application in-place.

& $env:windir\\framework64\v4.0.30319\aspnet_compiler.exe -v / -p $appDestinationPath -errorstack | write-host

^works beautifully