Sharepoint 2010 从现有SharePoint 2010应用程序生成WSP包
我有一个正在运行的SharePoint 2010应用程序,我想提取WSP,以便在另一台服务器上部署该应用程序。我还没有自定义组件,所以我还没有使用VisualStudio。 是否可以从管理中心提取web应用程序的WSPSharepoint 2010 从现有SharePoint 2010应用程序生成WSP包,sharepoint-2010,wsp,Sharepoint 2010,Wsp,我有一个正在运行的SharePoint 2010应用程序,我想提取WSP,以便在另一台服务器上部署该应用程序。我还没有自定义组件,所以我还没有使用VisualStudio。 是否可以从管理中心提取web应用程序的WSP 非常感谢是的,可以使用powershell命令从CA提取wsp 请看看这个 要进行单个wsp备份,请使用此 $farm = Get-SPFarm $file = $farm.Solutions.Item(“JDSU.OneStop.wsp”).SolutionFile $fi
非常感谢是的,可以使用powershell命令从CA提取wsp 请看看这个 要进行单个wsp备份,请使用此
$farm = Get-SPFarm
$file = $farm.Solutions.Item(“JDSU.OneStop.wsp”).SolutionFile
$file.SaveAs(“c:\temp\JDSU.OneStop.wsp”)
要进行多个wsp备份,请使用此powershell命令
Start-Transcript "c:\wsp\transcript.txt"
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$solutions = [Microsoft.SharePoint.Administration.SPFarm]::Local.Solutions;
foreach ($solution in $solutions) {
$solution.SolutionFile.SaveAs("c:\wsp\" + $solution.Name);
}
Stop-Transcript
希望这有帮助感谢您的帮助,cmdlet必须从管理帐户运行是右键单击Powershell,然后选择以管理员身份运行