WSPBuilder – Correct Syntax

WSPBuilder – Correct Syntax

I’ve been pulling my hair out for the last few hours with the command line syntax of WSPBuilder. It is quite picky with the syntax that you use and if not correct it will produce an empty .wsp file (only contains a Manifest.xml).

When creating the WSP, make sure you have folder structure like this:

Top Level Folder

(Subfolder) 12 – Subfolders for the 12 Hive

(Subfolder) GAC – Place in this folder any dll’s you wish to add to the GAC

Then run WSPBuilder from the command line using the following Syntax:

WSPBuilder.exe”  -ProjectPath “Top Level Folder Path Here” -OutputPath “Place to store the created wsp e.g.C:WSP”
-SolutionPath “Same as outputpath”

Hope this helps some people :-)

2 thoughts on “WSPBuilder – Correct Syntax

  1. Stephen A

    *sigh* I have been struggling with this for the past several hours as well. Thank you. This is exactly what I was looking for.

  2. Sven De Bont

    the ‘SolutionPath’ parameter should point to the same folder as the ‘ProjectPath’ and not the ‘OutPutPath’


    wspbuilder -ProjectPath “c:mysolutionmyproject” -OutPutPath “c:output” -SolutionPath “c:mysolutionmyproject”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">