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

前端 未结 9 1837
执笔经年
执笔经年 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:26

    Assuming you are using Visual Studio, why don't you use different Solution Configurations? For example: you can have a Debug config which uses Web.config.debug and a Release config which uses Web.config.release. Web.config.debug should have something like

     
    

    with the file Standard_Name_For_Config.config that gots all the personal developer settings, while the Web.config.release always has the production settings. You can store default configs in some source controlled folder and make a new user take them from there.

提交回复
热议问题