locked
publish web site copy files RRS feed

  • Question

  • User1818454445 posted
    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><o:p></o:p>

       <system.web><o:p></o:p>

          <compilation><o:p></o:p>

             <buildProviders><o:p></o:p>

               <remove extension=".lic"/><o:p></o:p>

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

             </buildProviders><o:p></o:p>

          </compilation><o:p></o:p>

       </system.web><o:p></o:p>

    </configuration><o:p></o:p>

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

    Cheers,
    Jeff
    Tuesday, June 6, 2006 3:24 PM

All replies

  • User1883441824 posted

    Thank's.

     

    Very usefull tip.

     

    Regards,

    Wednesday, June 7, 2006 7:41 AM
  • User-360267467 posted

     Thank you!

     I've searched a long time for the solution.
     

    Thursday, September 6, 2007 2:46 AM