0

Here is my requirement:

I want to be able to deploy my project in such a way that my web.config is not overwritten and stays intact. For all the changes that have been made to web.config during development are copied to a file called new_web.config and that is loaded to the server during the deployment. So that server now has total of two files web.config(The original one before deployment) and new_web.config(the new one).

To achieve that I am doing a Copy from web.config to new_web.config on

and had set BuildAction for web.config= None.

Thats would work fine if the deployment process is copying all the files over from source to destination.

But it is not working in my case because it is deleting all the files in destination folder and then copying all the files from the source.

Can anyone suggest any work around this?

4

0 回答 0