views:

1635

answers:

3

Can anyone point me to tutorials on how to use WSPBuilder to host a user control in a MOSS webpart?

+4  A: 

With WSPBuilder, create a "Web Part Feature" within your solution; and then follow along with this tutorial:

http://jcapka.blogspot.com/2009/01/i-was-explaining-my-technique-of-using.html

The only thing you'll to do to get everything packaged nicely in WSPBuilder's generated WSP would be to add your usercontrol to the following folder in your solution:

12\TEMPLATE\CONTROLTEMPLATES

(you'll need to "add folder" within VS to get the "CONTROLTEMPLATES" folder; "TEMPLATE" should already be present, with the "FEATURES" folder under it)

Have WSPBuilder build the solution for you, and then deploy!

Gurdas Nijor
+1  A: 

What Gurdas said.

But also have a look at SPVisualDev It will extend the WSPBuilder template with some more items you can add through the regular "Add/New Item" in visual studio such as.. an ASCX user control.

ArjanP
+1  A: 

Hi,

Have a look at this article:

http://greggalipeau.wordpress.com/2009/05/18/developing-sharepoint-webparts-using-user-controls-and-web-applications/#comment-746

It explains how to utilize the flexible nature of WSPBuilder, ASP.Net Web Applications and post build scripts in order to utilize WSPBuilder as your deployment project for your UI.

The article is very good.

Annette
I followed the instructions exactly, and have been using it for a month. It all works.
Javaman59