Home
Do you release build your web applications before you deploy them?
  v1.0 Posted at 17/11/2016 5:40 AM by Tiago Araujo
Additionally to the reasons found on rule Do you always deploy Release builds to production, there are more reasons doing this 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>

​​​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.​​

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.