0

実行中の SharePoint 2010 アプリケーションを実行しており、そのアプリケーションを別のサーバーに展開できるように WSP を抽出したいと考えています。カスタム コンポーネントはまだないので、まだ Visual Studio を使用していません。Web アプリの WSP を集中管理から抽出することはできますか?

どうもありがとう

4

1 に答える 1

0

はい、Power シェル コマンドを使用して 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

お役に立てれば

于 2013-10-10T10:40:36.080 に答える