Write a. Bat script to replace the specified DLL in GAC

Source: Internet
Author: User

If we know the location of the corresponding file (such as usercontrol, JS, CSS, etc.) in SharePoint project, we can directly modify the file path in Sharepoint Server, then we will immediately see the modified effect, so that we do not have to repair and modify each time in Vs and then deploy to the Sharepoint Server. This greatly improves the efficiency.

Of course, for sharepoint2010, the 14 directory is a very important directory. Most of the source files are stored in this directory. Of course, some file information is stored in the corresponding database. [Do not forget that SharePoint designer is also a good tool for modifying SharePoint files]

 

For the DLL to be replaced, we can use the following method:

Write a. Bat script to replace the specified dll(the required condition is that gacutil.exe is also placed in the same directory of this file, and then directly run this. BAT file)

CDD: \ code \ ericsun \Localdeployd:"Gacutil.exe"/I ".. \ Dev \ bin \ debug \ ericsunproject. Common. dll "/FRemRecycle ericsun-7000 application pool% Windir % \ system32 \ inetsrv \ appcmd recycle apppool/apppool. Name: "ericsun-7000"Copy".. \ Dev \ bin \ debug \ ericsunproject. Data. PDB" "\ localhost \ C $ \ windows \ Assembly \ gac_msil \ ericsunproject. Common \ 1.0.0.0 _ 1de19275c7811c3b"RemGet a list of w3wp process to find out which one to attach to Debugger% Windir % \ system32 \ inetsrv \Appcmd list WPPause

...

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.