publish web site copy files

Last post 09-06-2007 2:46 AM by msycho. 2 replies.

Sort Posts:

  • Idea [Idea] publish web site copy files

    06-06-2006, 3:24 PM
    • Member
      15 point Member
    • jwk4946
    • Member since 07-11-2005, 3:40 PM
    • 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
  • Re: publish web site copy files

    06-07-2006, 7:41 AM
    • Member
      60 point Member
    • JP®
    • Member since 01-23-2006, 3:26 PM
    • Joinville / SC / Brazil
    • Posts 12

    Thank's.

     

    Very usefull tip.

     

    Regards,

    JP®
    .NET / Java Developer
    Joinville, SC, Brazil
  • Re: publish web site copy files

    09-06-2007, 2:46 AM
    • Member
      2 point Member
    • msycho
    • Member since 09-06-2007, 1:42 AM
    • Posts 7

     Thank you!

     I've searched a long time for the solution.
     

Page 1 of 1 (3 items)