title: What is the best practice for compiling Silverlight and WPF in one project?
body: <p>I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app.
  Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all in one project. My ideal solution would be a single project that allows multiple configurations. So,</p>
  
  <p>Configuration: Silverlight would generate:
  Company.Controls.Silverlight.dll</p>
  
  <p>Configuration: WPF would generate:
  Company.Controls.Wpf.dll</p>
  
  <p>Is it possible to have the same source in the same file just seperated via defines?</p>
  
  <p>Has anyone done this before?</p>
  
  <p><strong>Edit:</strong> I've created a solution per project, like MyCompany.Windows.Controls, which then contains 2 projects, MyCompany.Windows.Controls &amp; MyCompany.Windows.Controls.Silverlight. Alongside those 2 folders I have a "Shared" folder, which contains files used by both projects. It works well so far :)</p>