title: Adding an assembly reference to a script task in NAnt
body: <p>I'm struggling to get NAnt's script task to pick up a reference to a DLL outside the working folder.</p>
  
  <pre><code>&lt;target name="UpdateDBs"&gt;
    &lt;script language="c#"&gt;
      &lt;references failonempty="true"&gt;
        &lt;lib&gt;
          &lt;include name="\\srv-dev\sharedassemblies\OurCompany\DataTransfer\OurCompany.DataTransfer.dll" /&gt;
        &lt;/lib&gt;
      &lt;/references&gt;
      &lt;imports&gt;
          &lt;import namespace="OurCompany.DataTransfer.WebDocs" /&gt;
      &lt;/imports&gt;
      &lt;code&gt;
          &lt;![CDATA[
              public static void ScriptMain(Project project)
              {
                  WebDocDbPostbuildUpdater.UpdateSqlScripts(@"\\srv-dev\integration\OurProductSetup6.4\workingdirectory", new System.Version(6, 4));
              }
          ]]&gt;
      &lt;/code&gt;
    &lt;/script&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I get a build error:</p>
  
  <p>The fileset specified is empty after scanning '\srv-dev\integration\OurProductSetup6.4' for: NAnt.Core.StringCollectionWithGoodToString:</p>
  
  <p>I've tried a few different variations on this but got nowhere. Also the <a href="http://nant.sourceforge.net/release/0.85/help/tasks/script.html" rel="nofollow noreferrer">documentation</a> doesn't seem to make this particularly obvious.</p>
  
  <p>Any help appreciated.</p>