Build once and deploy to multiple environments with msdeploy & Visual Studio 2012

前端 未结 4 1382
北恋
北恋 2020-12-04 13:35

Working on centralizing configurations, app settings and connection strings, for multiple solutions, while also switching over to use msdeploy from command line to deploy we

4条回答
  •  天涯浪人
    2020-12-04 14:05

    We use option #1 and it works out well enough. We deploy to about 30-40 sites and applications using this approach.

    I think option #2 will cause headaches for either you or the developers. You'll either have to make sure the sections with settings are removed from the config on deployment, or lock them on the server so that the local config can't add them.

    For option #3 you will have to do multiple builds to get the transformed config files. It also isn't very feasible if you have a large number of sites to deploy.

    Option #4 could work, but you might run into limitations here. It's either the whole section is in a separate file or its all in the main file so there's no in-between.

    Option #5 looks interesting, but I haven't used it so I can't say much about it.

提交回复
热议问题