Custom web.config in Visual Studio Setup Project

Posted by Dmitriy Nagirnyak on Stack Overflow See other posts from Stack Overflow or by Dmitriy Nagirnyak
Published on 2010-03-24T02:54:59Z Indexed on 2010/03/24 3:03 UTC
Read the original article Hit count: 840

Hi,

In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project.

I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.

In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.

But this gives the warning:

WARNING: Two or more objects have the same target location ('[targetdir]\web.config')

And the actual config file included is web.config and not web_dist.config.

What would be the best option to include the web_dist.config (and named as web.config in the setup)?

Thanks,
Dmitriy.

© Stack Overflow or respective owner

Related posts about setup-project

Related posts about visual-studio