Site publishing shields unwanted files-Asp. net2.0 website publishing

Source: Internet
Author: User

it is often necessary to maintain old sites. Such sites generally have a large number of files, ASP, JPG, and JS. during testing, a directory (SITE) is usually created ), A brain is put below, but the problem arises at the time of release. It takes a lot of time to copy these files, which makes people very impatient. What you really need is the app_code.dll file. to solve this problem, configure ASP. Program is provided for compiling net2.0.

Add the following in Web. config:Code
-------------------------------
<Compilation DEBUG = "true">
<Buildproviders>
<Add extension = ". jpg" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". asp" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". GIF" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". SWF" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". PNG" type = "system. Web. Compilation. ignorefilebuildprovider"/>
</Buildproviders>

...........
</Compilation>
All files with the above extension will not be copied when the site is released.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.