sharepoint EventHandler如何部署
在测试环境写了个List的事件...直接点部署..功能可用..
现在想把这个功能部署到正式环境中(正式环境没有VS),请问如何部署..求帮助..
sharepoint2010
先package 把生成的wsp放到生产环境,用stsadm部署
用开发环境vs 打包 --吧bin文件下的 wsp包 拷到服务器上。 安装:stsadm -o addsolution -filename [*.wsp文件路径]"*.wsp;
部署:stsadm -o deploysolution -name *.wsp -allowgacdeployment -immediate
删除:stsadm.exe -o deletesolution -name *.wsp
更新:stsadm.exe -o upgradesolution -name ExpensesClaimSheerWorkOverTime.wsp -filename "C:\MossUpdate_dct\ExpensesClaimSheerWorkOverTime.wsp" -immediate -allowGacDeployment 涉及的常用STSADM COMMANDS 1. Add the solution stsadm -o addsolution -filename {WSPFILENAME}
2. Deploy the solution stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
3. Install the feature stsadm -o installfeature -filename {FeatureFolder}\feature.xml
4. Activate the feature stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force
5. Deactive the feature Stsadm.exe -o deactivatefeature -filename “C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\MyFeature\feature.xml” -ur http://myserver-SP1:2010/
6.Uninstall the feature stsadm -o uninstallfeature -filename
7.Retract Solution stsadm -o retractsolution -name [-url] [-allcontenturls] [-time] [-immediate]
8.Delete Solution stsadm -o deletesolution -name
当你在Sharepoint Farm的一个台服务器上部署了指定的Feature后,SPTimer服务会自动 synchronise/deploy (同步/部署)这个solution到此Farm中其它服务器上。
|