title: How to build library with WPF forms
body: <p>Is it possible to build a <strong>Class Library</strong> dll which also includes WPF forms?
  When I try to build one I get following errors:</p>
  
  <blockquote>
    <p>Error 1 Library project file cannot specify <code>ApplicationDefinition</code> element.<br>
    Error 2 The project file contains a property value that is not valid. </p>
  </blockquote>
  
  <p>If I set my project as <strong>Windows Application</strong> it compiles &amp; runs tho. Is there a way to get arround this? I'm using VS2010 &amp; C# .NET 4.0 if that might be of any interest to you guys.</p>
  
  <p>Thanks</p>