SharePoint deploy solution

Source: Internet
Author: User
Of course, the most direct method is Manual deployment
.~! OA]? 6hm0 put the DLL in the bin or GAC-> in the web. write safecontrol in config-> Add it to the Web parts library of the website set in China-Chinese Blog interactive community for the IT industry and related users-www. itchina8.com {. t; B @ F] I9/

C'l t tcm0 command line deployment:Several methods of stsadm tool deployment
) | # QL; f7z @ (amp0
_ 0R! VD + hc0Method 1: Continuation of the 2003 age
"M * rm B W [) y5d/T0 use the cab package to package the DLL, DWP, and manifest. xml OF THE webpart into a cab package.
'U * c7o 'gmj0y "S0Use stsadm-O addwppack for deployment
5q; r-] K) y � u} sf2 @ 0 (you can use stsadm-O enumwppacks to browse such a deployed webpart,
3j % MBM e + fqf0Use stsadm-O deletewppack)It China bar-a Chinese Blog interactive community for the IT industry and related users-www. itchina8.comm ~ Lcwmv) DH
This method can also be applied to the new webpart (Asp.net. webpart file instead. DWP file it China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.com] G! Ay (D? (]/~ U )? @ (F
Note that the formats of these two files are different, you can open it in the Web Component Library to find it in China-the Chinese Blog interactive community for the IT industry and related users-www. itchina8.com (s3d8a) I-'l & kcj0la

T: xt2g/Vy/V0Method 2: improvements to method 1 in Moss
(I have not tried the CD (FY * ^ 0) method, but it looks the same as method 1, but there are some more parameters for it China-the Chinese Blog interactive community for the IT industry and related users-www. itchina8.comg W "R # J} q {d
YesStsadm-O deploywppackDeployment,Stsadm-O retractwppackUninstall
XW; n0h {1E, t0it China bar -- a Chinese Blog interactive community for the IT industry and related users-www. itchina8.comh # G; M $ GS
Method 3: deploy through SolutionIt China-a Chinese Blog interactive community for the IT industry and related users-www. itchina8.comm h9yb * C?
You need to write a manifest for solution. XML, and the manifest in the 2003 age. XML is similar to deploying webpart. You need to write assemblies and dwpfiles in it (the classresources of the resource file is in assembly) it China bar-a Chinese Blog interactive community for the IT industry and related users-www. itchina8.com) P/r6u6dj 'J
In fact, the WSP file of solution is a cab file, but it is just a different extension ..................
5 _ '; E * He @ 0 has a specific format description in the SDK, but note that the SDK has an error in this place: In the dwpfile section, in the SDK, we use the filename attribute to specify the DWP/webpart file. In fact, we should use the location attribute to replace the filename attribute in it China.-The Chinese Blog interactive community for the IT industry and related users-www. itchina8.comll2jg! EO
Deployment method (step 2): stsadm-O addsolution it China bar-Chinese Blog interactive community for IT industry and related users-WWW.ITCHINA8.COM-L) bhfn' | 5li
Stsadm-O deploysolution it China-Chinese Blog interactive community for the IT industry and related users-www. itchina8.comiis4k4?
Uninstall method (step 2): stsadm-O retractsolution
Gm1i] 6q. M0 stsadm-O deletesolutionit China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.como! F0]-J, J ;[

~ O * DG + y3j, r7z C0Method 4: deploy through solution + feature
(D/R @&? 8t1 ~ 8j0: This is the most complicated method. This method is used by the webpart template in the vs2005 extension package.
Xu6km2h [R7 _ $ Z? L-f0 it does not directly add a webpart to solution, but first add it to a feature (contains DWP/webpart in the feature and specifies the Department to the Web Part Library ), then, add the feature to solution (the DLL file is still specified in solution). In addition to solution, activate featureit China-the Chinese Blog interactive community for the IT industry and related users-www. itchina8.com) B (X-T! X-P, u: NQ
This method is more flexible. You can enable/disable this webpartit in China through feature on the page-the Chinese Blog interactive community for the IT industry and related users-www. itchina8.comr;/W � o /#?
Deployment method (Step 3): stsadm-O addsolutionit China bar-an interactive Chinese blog community for the IT industry and related users-www. itchina8.comm2zsyc7a
Stsadm-O deploysolution
!? Kre: CQ * j5o0 stsadm-O activatefeatureit China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.com/w1koayc
Uninstall method (step 4): stsadm-O deactivatefeatureit China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.comz2p0ws2pi
Stsadm-O uninstallfeature
/} 2dgy: ql4] 'r0 stsadm-O retractsolutionit China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.com-B ~ '"H/V S
Stsadm-O deletesolutionit China bar-interactive Chinese blog community for the IT industry and related users-www. itchina8.com % ujn 'workshop
If it is deployed through vs2005, we can see that the WSP file is generated in the bin/debug or release directory, and a setup is also generated. bat, through which you can easily complete the above steps: it China-Chinese Blog interactive community for the IT industry and related users-www. itchina8.com2h4b $ T. f [6ul
Deployment: setup-Iit China bar-Chinese Blog interactive community for the IT industry and related users-www. itchina8.comb4si t "MX $ P/
Uninstall: setup-u
-Qbwl9h0it China bar-interactive Chinese blog community for the IT industry and related users-www. itchina8.comg6vu1 {8n [/'1zr
Note: After installing vs extensions for Sharepoint in vs2005, there is a project type template called webpart, which writes a webpart, and then F5 deploys the webpart to your SharePoint site. A feature is actually deployed. Its principles are also described in msdn:Walkthrough: creating a basic SharePoint Web Part

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.