• Idea [Idea] publish web site copy files

    06-06-2006, 3:24 PM
    • Not Ranked
    • jwk4946
    • Joined on 07-11-2005, 11:40 AM
    • College Station, TX
    • Posts 3
    If you use the publish web site feature of Visual Studio 2005 you may have noticed that some files are not copied in your deployment and that you have to copy them manually. For example license files - if you have .lic or .licx files in your project that have to be deployed along with your project and you use publish web site you'll notice that they do not get copied

    To fix this just add this to to the compilation section of your web.config


    <configuration>

       <system.web>

          <compilation>

             <buildProviders>

               <remove extension=".lic"/>

               <add extension=".lic"
                   type="System.Web.Compilation.ForceCopyBuildProvider"/>

             </buildProviders>

          </compilation>

       </system.web>

    </configuration>

    note that the remove line is necessary. Voila - now your license files are copied when you deploy your project.

    Cheers,
    Jeff