Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Include .lic file when running 'Publish Web Site'
For a .NET 4.0 Web Site Project, files of a certain type (.lic) were not being included in the build when it was published.
The 'properties' tab had no option to embed/include them.
The solution is to update your project's web.config file, and include the following:

<configuration>
<system.web>
<compilation>
<buildProviders>
<remove extension=".lic"/>
<add extension=".lic" type="System.Web.Compilation.ForceCopyBuildProvider"/>
</buildProviders>
</compilation>
</system.web>
</configuration>

Created By: amos 5/11/2012 4:54:41 PM
Updated: 5/11/2012 4:54:47 PM