Reputation: 1
anyone know of PowerShell to batch "package" up solutions, each containing 1-2 projects, to individual WSP files for manual (read: PowerShell-ed) deployment to a remote SP2010 server?
Is there a better methodology?
Upvotes: 0
Views: 666
Reputation: 2888
Option A. Using Powershell why not just call msbuild on each project:
$projectDirectory = "C:\..\MyProject.proj"
$buildDirectory = "C:\..\MyOutputDirectory"
Invoke-Expression "msbuild.exe /t:Package $projectDirectory /p:OutputPath=$buildDirectory"
Option B. You could create a single solution with all the projects that is only used for the build. Then download the CKSDev tools. The tools will add an option in visual studio on the solution to "Package All SharePoint Projects (CKSDev").
Upvotes: 2