title: Get Assembly From C# Project File
body: <p>I am trying to make a simple WinForm tool to assist with code generation, and I was wondering if it was possible to get the Assembly of one project into a different one that presides in a different solution.  I want the form to show all of the classes and then properties for each class, and the easiest/best way I can think of doing that is like:</p>
  
  <pre><code>private Type[] GetTypesInNamespace(Assembly assembly, string nameSpace)
  {
      return assembly.GetTypes().Where(t =&gt; String.Equals(t.Namespace, nameSpace, StringComparison.Ordinal)).ToArray();
  }
  </code></pre>
  
  <p>If the user selects a <code>.csproj</code> file, is it possible to get the Assembly?  Or is there a different way to get the classes/properties without recursively searching the project folder and parsing the files?</p>