Do you release build your web applications before you deploy them?

Loading last updated info...

Reasons to release build your web applications before you deploy them with ASP.NET:

  • ASP.NET conducts a batch compilation on "release builds", which means it tries to compile all files in the current folder into one DLL
  • No resource caching is performed on debug build assemblies, which means that each request/response for a resource is not cached

According to MSDN web developer tips, you can choose one of the following to release build your web application:

  • In web.config file, set <compilation debug="false"/>
  • Disable the <compilation debug="true"/> switch for all ASP.NET applications on the server by setting the following in Machine.config
<system.web>
<deployment retail="true"/>
</system.web>

✅ Figure: The setting in machine.config will also turn off trace output in a page and detailed error messages remotely

Machine.config file is typically located at %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG.

Authors

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star