title: Error CS0246 when trying to use Gtk#
body: <p>I am trying to build a project using <a href="http://www.mono-project.com/docs/gui/gtksharp/" rel="nofollow noreferrer">Gtk#</a>.</p>
  
  <p>I have used Gtk# before, and I have always been using <a href="http://www.sharpdevelop.com" rel="nofollow noreferrer">SharpDevelop</a> for doing so.</p>
  
  <p>Just that now ... it doesn't seem to work any more:</p>
  
  <ul>
  <li>I have installed the latest release, Gtk# 2.12.26 for .NET, with the installer package from the <a href="http://www.mono-project.com/download/#download-win" rel="nofollow noreferrer">Mono website</a>, as I have formerly done with earlier versions.</li>
  <li>I have created a C# command line application project in SharpDevelop, using C# 3.0 and targetting .NET 3.5.</li>
  <li>I have added GAC references from my project to atk-sharp, gdk-sharp, glib-sharp, gtk-sharp, Mono.Cairo, and pango-sharp.</li>
  <li>I have added <code>using Gtk;</code> into my main C# file.</li>
  <li>When I write <code>Gtk.</code>, SharpDevelop's IntelliSense will show all the types found in the <code>Gtk</code> namespace.</li>
  <li><strong>When I compile the project, the compiler aborts with the following message:</strong></li>
  </ul>
  
  <blockquote>
    <p>The type or namespace name 'Gtk' could not be found (are you missing a using directive or an assembly reference?) (CS0246)</p>
  </blockquote>
  
  <p><strong>What am I missing?</strong></p>
  
  <p>This happens only when I target .NET 3.5. When I target .NET 4.0, I run into a <a href="https://stackoverflow.com/questions/32059464/what-would-cause-gtk-to-try-and-load-libpixbufloader-png-dll">different problem</a>.</p>
  
  <p>The complete output of the compiler (slightly anonymized) reads as follows:</p>
  
  <pre><code>Build started.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Mono.Cairo". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "pango-sharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "gtk-sharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "gdk-sharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "glib-sharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Warning MSB3245: Could not resolve this reference. Could not locate the assembly "atk-sharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
  Compiling ...
  ...\Program.cs(3,7) : Error CS0246: The type or namespace name 'Gtk' could not be found (are you missing a using directive or an assembly reference?)
  Build failed. (00:00:00.1930110)
  </code></pre>