title: ShellFile Error: missing assembly reference?
body: <p>I cannot find the namespace for <code>ShellFile</code>.</p>
  <p>I have added <code>using System.Windows.Shell</code> and also tried loading the Windows7APICodePack through the package manager console:</p>
  <blockquote>
  <p>PM&gt; install-Package Windows7APICodePack</p>
  <p>Installing 'Windows7APICodePack 1.0.0.0'.</p>
  <p>You are downloading Windows7APICodePack from Microsoft, the license agreement to which is available at <a href="http://code.msdn.microsoft.com/WindowsAPICodePack/Project/License.aspx" rel="nofollow noreferrer">http://code.msdn.microsoft.com/WindowsAPICodePack/Project/License.aspx</a>. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.</p>
  <p>Successfully installed 'Windows7APICodePack 1.0.0.0'.</p>
  <p>Adding 'Windows7APICodePack 1.0.0.0' to CADBuilderGUI.</p>
  <p>Successfully added 'Windows7APICodePack 1.0.0.0' to CADBuilderGUI.</p>
  </blockquote>
  <p>I just tried installing the later version 1.1.0.0 with:</p>
  <pre><code>PM&gt; Install-Package Windows7APICodePack-Shell
  </code></pre>
  <p>but still no luck.</p>
  <p>I am simply trying to get a thumbnail image of a file with:</p>
  <pre><code>ShellFile shellFile = ShellFile.FromFilePath(files[0]);
  Bitmap shellThumb = shellFile.Thumbnail.ExtraLargeBitmap;
  </code></pre>
  <p>But it doesn't know what <code>ShellFile</code> is.</p>
  <p>Any suggestions?</p>
  <br>
  <blockquote>
  <p><strong>This is not a duplicate <a href="https://stackoverflow.com/questions/5319235/system-windows-shell-reference-missing">of this</a> because PresentationFramework.dll is added by reference and I am building in Framework 4.0.</strong></p>
  </blockquote>