tags:

views:

116

answers:

1

I have a msbuild script with custom logic to deploy my service to the qa server automatically. I have to overwrite the default config with a dedicated one, but when I use <Copy SourceFiles="web.other.config" DestinationFiles="web.config" /> it does nothing.

How can I make it work?

+3  A: 

Thats exactly what I do in my build scripts and it looks fine. Are you sure you not getting any file permission issues. when overwriting the file?

try deleting the destination file first if it already exists.

<Delete Files="web.config" ContinueOnError="false"></Delete>
<Copy SourceFiles="web.other.config" DestinationFiles="web.config"></copy>
Sheff
Silly user error: I had <Copy SourceFiles="web.other.config" DestinationFiles="web.other.config"></copy>
Grzenio
We've all been there!
Sheff