title: common configuration for multiple project
body: <p>I have a VS2013 solution with multiple projects. I have a Web API project, an MVC project, a Windows Service project, and some more business logic projects.
  Now if a connectionstring changes I have to replace it at least in 3 projects.</p>
  
  <p>I want to have a common configuration solution. What is your suggestion to handle this situation?</p>
  
  <p>I made a Configuration project with an App.config file, but it seems ConfigurationManager use always it's applications config file, for example if I'm using this Config project from ASP.NET, then the web.config is the living config file, and not the Class libary's app.config.</p>
  
  <p>Huh, I found a solution. Perhaps the method to link a configuration file into every projects would be good too.</p>
  
  <p>Finally I made a MyConfiguration project. Which is contains just this one class:</p>
  
  <pre><code>public static class MyConfiguration
  {
      #if(DEBUG)
          public static string ConnectionString = "Data Source=xxxxxxxxx.database.windows.net,1433;Initial Catalog=CRM;persist security info=True;user id=xxxxxxxxxxxxxxx;password=xxxxxxxxxxxxxxx;multipleactiveresultsets=True;
      #else
      public const string ConnectionString = "Data Source=yyyyyyyyy.database.windows.net,1433;Initial Catalog=CRM;persist security info=True;user id=yyyyyyyyyyyyy;password=yyyyyyyyyy;multipleactiveresultsets=True;"
      #endif
  }
  </code></pre>
  
  <p>I just referenced MyConfiguration into my projects, and it will gives me the correct connectionstring for debug and release configurations.
  What do you think?</p>