Site Search:
Sign in | Join | Help
4Penny.net

ASP.NET

Notes, Tricks and Tips on ASP.NET Coding

Including '.lic' files in the new Web Deployment Projects

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.

 

Comments

 

Ryan said:

Brilliant...this worked like a charm, thanks!

April 16, 2007 3:50 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.