ASP.NET Precompile

Can we use aspnet_compiler as a part of the octopus deployment process and generate a report for the warnings and errors, if there are any?

Hi,

Thank you for getting in touch.

We recommend running pre-compilation at build time. A community member has created a NuGet package to help do this. Please see this UserVoice suggestion for more information.

Alternatively, if you just want to make sure the views compile, set the MvcBuildViews property in your project file to true. See this blog post for more details.

If you do still want to do it at deployment time, add a PostDeploy script that runs aspnet_compiler.

Hope that helps,

Robert W