简体   繁体   中英

Merge the web.config when publishing to the IIS (VS2010)

I have a question that have been breaking my head for a good while.

I have a Web project which will not be deployed with WebDeploy, but will be with Publish option. I need to merge the web.config, the one going from TFS till the one going to IIS, merging the information, and keeping the IIS (receiver) web.config lines if there's a conflict when uploading it.

Also to automatize the publish upload to the IIS. The hardest part for me is the web.config merging. Is the most important.

I've heard that this can be authomatized with the same Visual Studio 2010, but can't really find any specific answer. Could anyone help me please? Thanks in advance.

我相信您对Web Config Transformations的想法,但这通常是在删除之前合并配置文件,而不是将其与已部署的文件合并。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM