VS2010 How to make DLL file names fixed when publishing a Web site

Source: Internet
Author: User

vs when publishing a Web site, all CS generated DLL files in the bin directory are randomly named each time, such as: App_web_xxxxxxxx.dll (xxxxxxx is 8 lowercase letters and numbers of strings, random), so it is inconvenient to update the Live site, Because the dynamic library name has changed, it involves each ASPX file changing the reference declaration on the library every time:

<%@ page language= "C #" autoeventwireup= "true" inherits= "_default, APP_WEB_S9NOR8MV"%>
Even if there is a small change in CS, because the generated dynamic library name is different, all ASPX files will have to be re-transmitted again. If you can fix the file name of the dynamic library, update the site is much more convenient, only changed CS, rebuild the DLL file, just need to replace this DLL file.

Under VS2010 Environment:

1.Visual studio®2010 Web Deployment Projects:
http://www.microsoft.com/downloads/details.aspx?FamilyID=89f2c4f5-5d3a-49b6-bcad-f776c6edfa63&displaylang=en

2 Install the Visual studio®2010 Web Deployment projects plug-in and then right-click on the Web site project to see an Add Web Deployment project

3 Click Add Web Deployment Project and the following dialog box pops up

4 name and path can be modified, the general default is good, click OK, in the solution will generate a deployment project

5 Right-click on the deployment project and click "Generate"

6 After the build succeeds, a release directory will be generated in the directory where the project is deployed, and all files published by the project are in the release directory, and in the bin directory you can see that there are many irregularly named DLLs. The name of the generated DLL is the same as the name that was filled in when you added the deployment project earlier, Eduappweb_deploy

VS2010 How to make DLL file names fixed when publishing a Web site

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.