Referring to NuGet packages from csx script
<p>I am trying to write a C# interactive script (.csx) that needs to use a NuGet package, but I must be overlooking something fundamental because I can't get it to work.</p>

<p>I tried adding a <code>project.json</code> that refers to the package, and it gets installed into the global packages dir when I <code>nuget restore</code>, but it seems the <code>#r</code> directive does not look there. I failed to find a relevant documentation on how the <code>#r</code> directive work (most docs seem to deal with the similar but different project called ScriptCS).</p>

<p>How do you write a csx script that references NuGet packages?</p>