D.B
D.B

Reputation: 4309

Multiple debug and release configuration options in Visual Studio

There are multiple alternatives for "release and debug" configuration in visual studio, I would like to know if they serve the same purpose.

1) Option 1: In the Visual Studio toolbar

Visual Studio Menu

2) Option 2: In the web.config file

web.config

3) Option 3: In the project properties window

enter image description here

4) Option 4: In the publish site configuration window

enter image description here

Is not one of these configuration options enough to deploy an application? Are all of them required? what are the differences?

Upvotes: 0

Views: 1434

Answers (1)

Random Dev
Random Dev

Reputation: 52290

  1. The first one tells you in which one you are working right now (which configuration will be build if you say build - which one will start if you debug, etc.)

  2. The second one handles what how the server will build your aspx/razor/etc. pages.

  3. The third is there so that you can change the settings of the different configurations in the first place!

  4. The last one tells which configuration you want to deploy - no matter what the current selected configuration (from 1) will show - of course it will depend on the settings in 3 and will most likely deploy the file from 2.


so no - it's not enough to have only one of those

Upvotes: 1

Related Questions