Exculde web.config file while promote code from Dev to QA

While we promote code from Dev environment to QA environment, it copy everything inculde web.config file. After that we had to make changes for QA environment manually.

Is there any way we can exclude web.config file while promoting code from one environment to another environment?


Thanks for getting in touch! I had a chat to the developers and it looks like there are not many options here. If you need to do something like this, it looks like the only way is to use a pre/post deploy script to copy the config into another folder then move it back.

There isn’t any inbuilt functionality for this as its not something we generally hear people doing.

Let me know if you have any further questions here.

Best regards,