Recently Microsoft announced 'Web Deployment Projects', and I'm really liking the whole concept. There is a lot of stuff on http://weblogs.asp.net/scottgu/default.aspx, but one thing that I had a hard time finding was how to include '.lic' (license)files in my project. Thanks to 'Girijesh' for pointing me in the right direction.
After spending some time on forums.asp.net, I found the solution, which I have repeated here so that I don't loose it.
Just edit your web.config compilation settings:
<configuration>
<system.web>
<compilation>
<buildProviders>
<remove extension=".lic"/>
<add extension=".lic" type="System.Web.Compilation.ForceCopyBuildProvider"/>
</buildProviders>
</compilation>
</SYSTEM.WEB>
</configuration>
This will force all *.lic files to be copied when publishing/precompiling your site.
I found the above at http://ocegtech.blogspot.com/2006_07_01_ocegtech_archive.html, another good read.