0

Is there a way to package a SharePoint solution in a .wsp file from the Visual Studio dte?

I can build the solution with the following command:

$dte.ExecuteCommand("Build.RebuildSolution")

But that doesn't package the project.

Note: I was trying to do this with Powershell/PowerConsole, but it would be the same as if I was accessing the $dte some other way.

epotter
  • 7,631
  • 7
  • 63
  • 88
  • try `$dte.ExecuteCommand("Build.Package")` or `$dte.ExecuteCommand("Project.BuildDeploymentPackage")` – chrixian Jun 25 '11 at 16:20
  • @chrixian Your first suggestion worked. If you enter it as an answer, I'll mark it as the accepted answer. – epotter Jun 28 '11 at 13:59

1 Answers1

1

$dte.ExecuteCommand("Build.Package")

chrixian
  • 2,783
  • 2
  • 15
  • 16