How do I prevent 'Publish Web' from overwriting config files?

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-05-11T17:20:26Z Indexed on 2010/05/11 17:24 UTC
Read the original article Hit count: 326

When I publish my Asp.Net MVC website to the production server (via VS2008), the web.config & castle.xml files are overwritten. The content of these files is obviously different between my local dev environment and the production server.

How do I prevent these files from being published?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc