sharepointwsp

Building wsp from post-build event command line


What is the command for building WSP from post-build event command line?

enter image description here

I'm adding one more image so that you can understand my exact requirement.

enter image description here


Solution

  • I found the answer from here and it works for both SharePoint 2007 and 2010.

    call "C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe" -ProjectPath $(SolutionDir) -OutputPath $(SolutionDir) -SolutionPath $(SolutionDir)