How to change the default assembly configuration for a release?

Whenever I open a new (web project) in VS 2010, the build configuration is set to "Active (Debug)" by default. I read somewhere that if I upload my project like this to the server, it will have a small impact on performance (is that true?), So I need to manually go to the properties and change it on the build tab for release. Is there any way to tell VS 2010 to open every new project in the "release" configuration?

+4
source share
3 answers

You would be better off doing the publish operation when you want to deploy, as this will not only create in Release (or any configuration), but also create the files necessary for the application. You can publish it to a local folder and then upload it to a remote server.

0
source

I believe that the assembly configurations are listed in alphabetical order, and the first is always selected when starting a new project.

Since Debug and Release configurations are always added by default, you will always get a debug version.

+3
source

Yes, it is true that a dll built in debug mode will not work as efficiently as a dll built in release mode. The debug mode assembly includes symbols that allow you to attach the debugger to the dll while it is running. The result is a slightly larger, less efficient set of libraries. However, if you do not perform very intensive mathematical processing, you probably will not notice a performance loss.

On the other hand, Release mode will produce a smaller, more efficient dll, but you will not be able to connect an external debugger after deploying your application.

I would recommend that you leave your applications in debug mode during development / testing, and then switch to release mode before deploying to production.

UPDATE: I now understand that I have not answered your original question, but I hope you find the tip useful.

0
source

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


All Articles