.NET Configuration (app.config/web.config/settings.settings)

后端 未结 13 1256
广开言路
广开言路 2020-11-29 14:41

I have a .NET application which has different configuration files for Debug and Release builds. E.g. the debug app.config file points to a development SQL Server which has d

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 15:24

    To me it seems that you can benefit from the Visual Studio 2005 Web Deployment Projects.

    With that, you can tell it to update/modify sections of your web.config file depending on the build configuration.

    Take a look at this blog entry from Scott Gu for a quick overview/sample.

提交回复
热议问题