Supporting Development and Release web.config in Asp.Net






4.50/5 (2 votes)
I do it a little differently.I basically use the Build Configuration. I normally maintain two Web.Config files as Debug.config and Release.config. I have written Post Build commands to the Project which automatically copies the Config file according to the Build Configuration.For...
I do it a little differently.
I basically use the Build Configuration. I normally maintain two Web.Config files as Debug.config and Release.config. I have written Post Build commands to the Project which automatically copies the Config file according to the Build Configuration.
For example,
If I do Debug build, it makes a copy of Debug.Config and renames it to Web.Config.