问题描述
我从其他问题得到帮助问题:
I got a help from other Question:
stsadm -o addsolution -filename {WSPFILENAME} stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
我的WSP文件在这里:
my WSP file is here:
C:\H\H\H.wsp
url:
https://test0emeamicrosoftonlinecom-6.sharepoint.emea.microsoftonline.com/
如何正确写这个stsadm命令?
how to write this stsadm command correctly?
推荐答案
我将假定这是为SharePoint 2007.有两个STSADM命令需要运行(SharePoint 2010应该使用Powershell ... STSADM只是向后兼容的。
I will assume this is for SharePoint 2007. There are two STSADM commands that need to be run (SharePoint 2010 should use Powershell...STSADM is only there for backwards compatibility).
:
stsadm -o addsolution -filename C:\H\H\H.wsp
:
部署解决方案包的参数在很大程度上取决于解决方案中的内容以及需要部署的内容。
The parameters for deploying your solution package are largely going to depend on what is in the solution and what needs to be deployed.
一个简单的全局部署可能看起来像这样:
A simple global deployment may look something like this:
stsadm -o deploysolution -name H.wsp -immediate
对于针对特定Web应用程序的部署农场和组装部署到GAC,它可能看起来像这样:
For a deployment targeted to a specific web application in your farm and with assemblies being deployed to the GAC it may look something like this:
stsadm -o deploysolution -name H.wsp -url http://mydomain.com -allowgacdeployment -immediate
这篇关于如何正确写入stsadm -deployolution? sharepoint webpart部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!