Using <%@ Assembly %> reference without CopyLocal
<p>I am trying to write a standalone ASPX page (no codebehind) for reasons I won't get into.  So I want to have some functions declared in the page.  But those functions need to reference assemblies that aren't generally referenced by ASPX pages.  This means that I need an &lt;%@ Assembly %> reference, as detailed here:
<a href="http://msdn.microsoft.com/en-us/library/d864zc1k.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/d864zc1k.aspx</a></p>

<p>And it all works fine if I have my reference to the assembly set to CopyLocal = true.  However, it is in my GAC, so I don't want to set it to copy local.  But if I don't have the DLL in my /bin folder, the page does not compile due to a bad reference.</p>

<p>What do I have to do to get the &lt;%@ Assembly %> declaration to work against an assembly in the GAC?</p>
