Reputation: 36649
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?
Upvotes: 0
Views: 412
Reputation: 3482
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>
Upvotes: 4