title: Can't load library in C#
body: <p>I am trying to use NDesk.Options library in my code. I have the file NDesk.Options.dll on my computer. I compile my program using </p>
  
  <pre><code>dmcs -R:/path-to-dll/NDesk.Options.dll Program.cs
  </code></pre>
  
  <p>The program compiles fine showing no errors. However when I run the binary using mono I get this error</p>
  
  <pre><code>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'NDesk.Options, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  File name: 'NDesk.Options, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null'
  [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'NDesk.Options, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  File name: 'NDesk.Options, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null'
  </code></pre>
  
  <p>The library has no dependencies and the path to dll is correct.</p>
  
  <p>Here is the pkf-config file for the library I have on my computer.</p>
  
  <pre><code>prefix=${pcfiledir}/../..
  exec_prefix=${pcfiledir}/../..
  libdir=${exec_prefix}/lib
  assemblies_dir=${libdir}/ndesk-options
  Libraries=${assemblies_dir}/NDesk.Options.dll
  Sources=${assemblies_dir}/Options.cs
  
  Name: NDesk.Options
  Description: C# Program Option Parsing Library.
  Version: 0.2.1
  Requires: 
  Libs: -r:NDesk.Options.dll
  </code></pre>