Visual Studio 2015 changes configuration from debugging to release when I publish

I have a project configured to configure Debug for normal coding. When I publish using the Publish Website button, the configuration automatically changes to Release after the publication is complete. If I open Edit Profile Publish and publish from the dialog box, this will not happen.

Does anyone know if this is a bug or something that I can solve with some kind of configuration setting?

Thanks.

+8
visual-studio-2015
source share
1 answer

Martin Noreke's comment is correct:

The publication will compile and pop out of the Release assembly, but after that it will not reset.

Conversely, if you publish using a profile that has a debug configuration when you select Release, Visual Studio switches to Debug.

This only happens if you use the Web Click Once Publish toolbar.

If you publish using the Publish Web dialog, Visual Studio does not switch the configuration. You can open this dialog by clicking the button next to the publish button on the toolbar or by right-clicking your project and clicking "Publish ...".

Change This seems to be fixed in Visual Studio 2017.

+1
source share

All Articles