Skip to content

Deploying Sharepoint Workflows with WSPBuilder

July 21, 2010

In my last post, I talked about building a workflow, but glossed over the actual deployment process. I actually used a different process than the tutorial. WSPBuilder is a free command-line application that will take your VS2005 project and generate a .wsp file. That’s awesome, because then it’s self-containing and can be easily deployed onto the server. And the whole process is a snap.

After you download and install WSPBuilder, you just need to go to the project’s folder and run it. Open a Command Prompt window and navigate to the project’s directory (By default, C:\Documents and Settings\[User]\My Documents\Visual Studio 2005\Projects\[Project Name]\[Project Name]). Now, you can probably run WSPBuilder.exe without any arguments. They’re described in the readme if you want to look into them, though. Note: WSPBuilder.exe probably isn’t in your path, and unless you’re going to be using it often you probably don’t want to add it there. Make sure you give the full path to WSPBuilder when you run it. It seems like a stupid mistake, but it’s easy to make.

If all goes well, you now have a file called [Project Name].wsp! Copy this file to your server if it’s not there already, and install and deploy it with stsadm. For example:

stsadm -o addsolution -filename UpdateGlossary.wsp
stsadm -o deploysolution -name updateglossary.wsp -immediate -force -allowGacDeployment

I used -force because I had to reinstall the feature and Central Administration gave me an error when I tried to deploy it. There you have it! The basics of deploying a Workflow with WSPBuilder.

Advertisements
No comments yet

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: