Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't you build a website in release mode?

In ASP.Net, if I set up a web application I can configure it to be in release mode but with a website I can only set the configuration to be in debug mode. Why is this?

like image 252
Johnno Nolan Avatar asked Feb 13 '09 17:02

Johnno Nolan


2 Answers

A Web Site's debug/release is controlled by the Web.Config file:

<system.web>
  ...
  <compilation debug="true">
  ...
  </compilation>
</system.web>

Set debug="true" for debugging, set debug="false" for release.

like image 43
Astra Avatar answered Nov 15 '22 15:11

Astra


In web site projects each page is compiled dynamically upon first request. It will compile without debugging symbols unless you specify otherwise in the config file.

like image 191
Peter J Avatar answered Nov 15 '22 16:11

Peter J