Monday, April 13, 2009

WSPBuilder documentation

I know that the documentation on using the WSPBuilder hasn't been fulfilling to say it nicely, but that's the way it is.

The good thing is that other people have been nice and done some work on this. This is what I have found so far (in random order), sorry if have forgot someone.

WSPBuilder - Walkthrough of the Visual Studio Add-in

WSS: Development - Quick Start with WSPBuilder

WSS Dev: WSPBuilder Templates

WSS Dev: HowTo debug a WebPart

Change the WSPBuilder DeploymentTarget to WebApplication

Intro to WSPBuilder

WSPBuilder Folder Structure

Developing SharePoint Solutions in Visual Studio

TFS Build and WSPBuilder

How to get TFS to automate your WSP builds with WSPBuilder

The WSPBuilser Manual

My Blog.

New! (2009/08/02)

Creating a code-only webpart and deploying as a feature

Please comment with more links if you know one.


Anonymous said...

Nice to have an index at Mr. WSPBuilder :-)

mkomnenous said...

I am getting an error when trying to "Build WSP". Here is the error..."Could not load file or assembly 'CabLib, Version=, Culture=neutral, PublicKeyToken=5c838b77b53f84a0' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Carsten Keutmann said...

WSPBuilder can not find the CABLIB.DLL because you are using the worng bit version of CABLIB.DLL. You can install the WSPBuilder Extensions and it should install the correct version on your system.

mkomnenous said...

I have installed the WSPBuilder Extensions but I am getting the same error. Here is the full error I am getting after installing...
Not able to load and reflect on assembly: D:\ClientViewCode\AkinGump\HelloWorldExample\bin\deploy\HelloWorldExample\cablib.dll. However the assembly will still be included in the WSP package!
Saving the Manifest.xml file
Creating the WSP file
Could not load file or assembly 'CabLib, Version=, Culture=neutral, PublicKeyToken=5c838b77b53f84a0' or one of its dependencies. The system cannot find the file specified.

Is the cablib file supposed to be with the project files? Relatively new to this tool and its setup. In the one project that it worked (not setup by me) is now not working. Just not sure what is the problem. There isn't much on how to trouble shoot issues.

Carsten Keutmann said...

The CABLIB.DLL is a C++ library and therefore you have to use the correct bit version (x86/x64).
You can find the two different versions under "C:\Program Files (x86)\WSPTools\WSPBuilderExtensions\Resources" and the copy the one that matchs your system.

mkomnenous said...

Yes I see the two different files and I am the 32 bit version. Where is the file supposed to reside? What location in the file system. Is it in the WSPBuilderExtensions folder tree? Somewhere within the Visual Studio folder tree? In a bin folder somewhere? I have done a search for the the DLL and it is only with the VS projects that have a deploy folder and in the resources folder. Sorry to be so dense on this. Thank you for your time.

Biju said...

I have developed an event handler,called TaskListEventHandler, for the Task list ((ItemAdding, ItemDeleting, ItemUpdating) as feasture using the WSP Builder project template, and I have also added a web part, called RegisterEventHandler, which will be used to bind(register) the events to a list. The webpart is WSP Builder template "Webpart without feature".

Defaultly, when i added the new webpart into the project, the .webpart file was created under the folder 80/wpcatalog. But as i wanted the whole project as a singel feature I moved the .webpart file to the Feature/TaskListEventHandler folder. Now the Feature/TaskListEventHandler contains 3 files elements.xml, feature.xml and the RegisterEventHandler.webpart.

I edited the elements.xml, feature.xml and the RegisterEventHandler.webpart

(refer link : )

Next, i build the poject using the WSP builder, and later create the deployment folder. When i try to install the feature using the WSPBuilder setup.exe file, the feature is getting deployed sucessfully.The feature and the webpart is getting deployed sucessfully. The web part is available in the web part gallery (SiteSetting-> EditPage-> Add a WebPart).

But the webpart's is not under the specific group which i had set in the elements.xml (currently it is shown under the "Miscellaneous" group) , and also the webpart is not shown(visible/available ) under the root site's web parts Galleries (Site Action->Site Settings->WebParts(Galleries) ).

I tried the installing+deploying + activating the feature using the STSADM command(through batch file), it works sucessfully, even the grouping is getting set as per my requirement.

Could anyone please suggest me a solution, how can i get it working using the WSPBuilder's Setup.exe?

With Regards

Anupam Shrivastava said...

Got it working!!!

Just go to C:\Program Files\WSPTools\WSPBuilderExtensions\Resources\x86 and you'll get a CabLib.dll file there. Drag and drop that file in c:\windows\assembly and whoa!!! error gone.


rashmi said...


I am trying to deploy a WSP project using WSP Builder->Deploy.
But keep getting Object Reference not set for a custom .dll.

I have created a Web Service Library,which in turn is referencing the custom .dll.

I have published the custom dll in GAC,but still it doesnt work.

Please help ...........

rashmi said...

I keep getting error with WSP->Deploy

Inner Exception(1):This solution contains one or more assemblies targeted for the global cache assembly....

Sensoft2000 said...

You can find the dll in "C:\Program Files\WSPTools\WSPBuilderExtensions\Resources\x86\" folder.

Drag and drop it in C:\windows\assembly folder

Sandhya said...

Thanks a saved my time.. :)

it outsourcing services said...

We respect your business and understand that our success depends on your success too. We hold active communication carefully gathering all the requirements to offer the best cost-effective and competitive solution.
We are committed for long-time relationship, our aim not in just providing professional service but in becoming your one-stop IT outsourcing vendor and reliable partner.
We protect your privacy and property rights, all the rights and developed software source code are retained solely to you upon project completion. We guarantee that developed code won’t be given to 3rd party or used in other projects.
java software company | software development company | java web development | blackberry application development | iphone application development | android application development | java outsourcing | it outsourcing services |

Brad Fallon said...

to get wsp i need internet explorer, to get internet explorer i need wsp?

Dave said...

Thank you very much for sharing. I am just wondering if I could install WSPBuilder in windows XP without WSS installed?

fico score said...

Is it possible to write assembly language code and combine with visual basic in visual studio 2008?

boy baby shower themes said...

Have you received a job offer from a company called WSP Solution Group?

boom trucks for sale said...

Difference between documentation comment and multiline comment in java?

eb 5 visa program said...

What documentation is required for a foreign, divorced woman in order to marry a Turkish man in Turkey?

continuum south beach said...

my computer blinks when i start it up after like 20 sec and the task bar changes on its own to a different?

Birger said...

I've just installed WSPbuilder for on a VS2008 on a server 2008(64x) with MOSS 2007 SP3
I can build wsp and deploy them, but when I use the "copy to 12 hive" nothing happens.. no error or info is displayed.
Any suggestions