Why doesn't the website project have release mode in config?

I am currently working on a website project. I want to build a project in release mode, which, unfortunately, I saw that the visual studio does not have release for assembly and only debug it .

in the web application project, we see two options in building debugging and release .

I want to know why a website project has debug mode in build.I have read about building a debug and release mode, in this release mode, optimize the code and less overhead .

+4
source share
2 answers

You need to set the release meod by right-clicking on the solution> property> in the dialog box, change its release mode or direclty from rop vidual studio, set it for release, see below the image marked in red

enter image description here

+1
source

In website projects, pages are grouped dynamically from the first request. It will compile without debugging characters unless you specify otherwise in the configuration file.

You cannot change it using the configuration manager and do not see it in your settings.

In your web config file, find these options

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

Set true to false, after which it will be published in release mode. Hope this helps.

+1
source

Source: https://habr.com/ru/post/1436317/


All Articles