Custom web.config in Visual Studio Setup Project
- by Dmitriy Nagirnyak
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.