Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint PowerShell从VS2010批量打包SP2010项目_Sharepoint_Powershell_Package_Wsp - Fatal编程技术网

Sharepoint PowerShell从VS2010批量打包SP2010项目

Sharepoint PowerShell从VS2010批量打包SP2010项目,sharepoint,powershell,package,wsp,Sharepoint,Powershell,Package,Wsp,有谁知道PowerShell将每个包含1-2个项目的解决方案批量“打包”到单个WSP文件,以便手动(读:PowerShell ed)部署到远程SP2010服务器 有更好的方法吗?选项a。使用Powershell为什么不在每个项目上调用msbuild: $projectDirectory = "C:\..\MyProject.proj" $buildDirectory = "C:\..\MyOutputDirectory" Invoke-Expression "msbuild.exe /t:Pac

有谁知道PowerShell将每个包含1-2个项目的解决方案批量“打包”到单个WSP文件,以便手动(读:PowerShell ed)部署到远程SP2010服务器


有更好的方法吗?

选项a。使用Powershell为什么不在每个项目上调用msbuild:

$projectDirectory = "C:\..\MyProject.proj"
$buildDirectory = "C:\..\MyOutputDirectory"
Invoke-Expression "msbuild.exe /t:Package $projectDirectory /p:OutputPath=$buildDirectory"
选项B。您可以创建一个包含所有仅用于构建的项目的单一解决方案。然后下载工具。这些工具将在VisualStudio中的解决方案中添加一个选项“打包所有SharePoint项目(CKSDev)”