user1343023
user1343023

Reputation: 1

PowerShell to batch package SP2010 projects from VS2010

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

Answers (1)

skeletank
skeletank

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").

enter image description here

Upvotes: 2

Related Questions