Developer specific app.config/web.config files in Visual Studio

前端 未结 9 1869
执笔经年
执笔经年 2020-12-12 10:05

We have several .NET projects where we store certain settings in configuration files.

Now each developer will have their own configuration files that differ a little

9条回答
  •  隐瞒了意图╮
    2020-12-12 10:31

    We have the same problem and what we are doing is

    • Check in the web.config with testserver / production values
    • Developer goes to windows explorer and change the read only mode of the file
    • Edit the config to suit to their environment.
    • Check in into the web.config happens only when deployment values changes or any config entry is added or deleted.
    • This needs a good amount of comment for each config entry as it needs to be changed by each dev

提交回复
热议问题