title: How to organize solution for multi-framework WCF service
body: <p>I'm wondering what is the best way to organize files for WCF service. The service should be compiled for two versions of .NET Framework 3.5 and 4.5 (behind of scene it works with different versions of third-party provisioning).</p>
  
  <p>The first thought is to create the files structure like this:</p>
  
  <pre><code>WcfProject
    |-File1.cs
    |-File2.cs
    |-MyWcfService.Net35.csproj
    |-MyWcfService.Net45.csproj
    |-??? Web.config ???
  |-MySolution.Net35.sln
  |-MySolution.Net45.sln
  </code></pre>
  
  <p>Project files are configured for different framework versions. But I have no idea what to do with Web.config files, which should be different for 3.5 and 4.5.</p>
  
  <p>Another way I see is to create different project folders (for 3.5 and 4.5) containing code files. In this case the common files are added to the project as links:</p>
  
  <pre><code>WcfProject.Net35
    |-File1.cs
    |-File2.cs
    |-MyWcfService.csproj
    |-Web.config
  WcfProject.Net45
    |-File1.cs (link to ..\WcfProject.Net35\File1.cs)
    |-File2.cs (link to ..\WcfProject.Net35\File2.cs)
    |-MyWcfService.csproj
    |-Web.config
  |-MySolution.Net35.sln
  |-MySolution.Net45.sln
  </code></pre>
  
  <p>What do you think guys? There is another way to solve my problem or the second solution is already the best what I can do?</p>