Debug and release

Source: Internet
Author: User
About ASP. NET Applications ProgramCompilation/@ debug settings in Web. config
<Compilation defaultlanguage = "C #" DEBUG = "false"/>

The difference between the project build ---> debug/release settings in vs. Net IDE is as follows:

Generally, for a. Net assembly, We need to specify the debug or release version during compilation. In this way, the generated Assembly contains or does not contain the debugging symbol and debugging database information. For ASP. net, the Project Build ---> debug/release settings are the same, it determines the version information of the main assembly of the last generated project (which should be placed in the bin directory of the application ).

However, in Asp.net, the final execution page/ascx control is dynamic compilation (generate dynamic temporary
So we need to develop the corresponding version information for these dynamically compiled components. This is what we need to provide in Web. config.
<Compilation defaultlanguage = "C #" DEBUG = "false"/>

. At the same time, this setting controls whether the Asp.net application can be directly debugged by F5, and whether the dynamically compiled assembly is compiled into an assembly on each page or multiple pages are compiled in one assembly.

The main difference is that

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.