Combining multiple config files in Visual Studio

前端 未结 4 1523
走了就别回头了
走了就别回头了 2021-02-14 17:02

I have a solution in Visual Studio 2008 which contains multiple C# projects. Each project has it\'s own config file (App.config and Settings.settings). This makes sense architec

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 17:43

    I'm not sure if this is what you are looking for or if it will help but just as a lead into an area to explore, note that you can link two Config files. For example, I have my connection string in a separate file so my connectionStrings line in Web.config reads:

    
    

    Then, in the separate file, I have:

    
        
    
    

提交回复
热议问题