How to exclude the Web.Config file while deploying

ganesh.mulimaniganesh.mulimani Posts: 28
edited May 8, 2014 3:41AM in Deployment Manager
Do we have solution to solve this problem.

I want to exclude my web.config file from the redgate package during my deployment step.

i dont want to deploy the web.config file to destination server.

Comments

  • To exclude the web.config from deployment, you'll need to stop it being put in the package in the first place. The web.config is an essential part of an IIS web application, so our default tools include it. You'll have to use RgPublish.exe with a .nuspec file if you want to customize the contents of the package.

    However, you shouldn't need to exclude the web.config file at all. It's better not to rely on the existing contents of the application directory when doing a deployment. If you need the web.config to be different on the target server than it is in the source code, the best way to achieve that is using variable substitutions and/or config transformations.
    Development Lead
    Redgate Software
Sign In or Register to comment.