title: csc.exe reference external .dll file
body: <p>I am trying to make a simple <code>c#</code> program using <code>Growl C# API</code>. </p>
  
  <p>I tried to compile my program in two different ways:</p>
  
  <p><strong>1)</strong> I kept my <code>.dll</code> file in the same directory as my <code>.cs</code> file. Than I ran</p>
  
  <pre><code>csc /r:Growl.Connector.dll,Growl.CoreLibrary.dll /out:test.exe *.cs
  </code></pre>
  
  <p>It compiled fine and also ran fine.</p>
  
  <p><strong>2)</strong> Now I have created a directory inside my current working directory named <code>growl</code> and kept all my <code>.dll</code> references there.</p>
  
  <p>Now when I try to compile it using the below command</p>
  
  <pre><code>csc /r:"D:\Modified\Growl_NET_Connector_SDK\libraries\growl\Growl.Connector.dll","D:
  \Modified\Growl_NET_Connector_SDK\libraries\growl\Growl.CoreLibrary.dll" /out:test.exe *.cs
  </code></pre>
  
  <p>It compiled fine but when I tried to run it the below mentioned exception occurred.</p>
  
  <pre><code>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Growl.Connector, Version=2.0.0.0, Culture=n
  eutral, PublicKeyToken=980c2339411be384' or one of its dependencies. The system cannot find the file specified.
   at GrowlNotification.Program.Main(String[] args)
  </code></pre>
  
  <p>So, my question is what is the correct way to reference <code>.dll</code> file in <code>csc</code> when files are in an external folder.</p>
  
  <p>Here is the <a href="http://pastie.org/3956013" rel="noreferrer">directory structure</a> for 2nd case.</p>