WSPBuilder – Correct Syntax

2 02 2009

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 🙂

Advertisements

Actions

Information

2 responses

26 01 2010
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.
-stephen

1 04 2010
Sven De Bont

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

e.g.

wspbuilder -ProjectPath “c:\mysolution\myproject” -OutPutPath “c:\output” -SolutionPath “c:\mysolution\myproject”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: