Winsmarts.com

Microsoft MVP

MVP Logo

Awarded the Microsoft MVP Award.

Hosted By

blah!bLaH!BLOG!!

Having WSPBuilder exclude your dll when creating a .wsp

Posted on 7/6/2008 @ 2:43 AM in #Sharepoint | 1 comments | 3849 views

If you've been following the defacto community standard, 99.9% of us use WSPBuilder to craft up our WSPs. It is rather simple to use - you simply create a folder called "12" (or 80 or GAC), in your class library project, and you hook up your class library project's post build event to an Install.bat. In the install.bat, you call WSPBuilder to craft up a .wsp for you. Easy speezy lemon squeazy.

But sometimes, actually, quite often, you have a solution that doesn't contain a DLL. Maybe it's a feature in which "XML" was all you needed.

In order to tell WSPBuilder to not include your dll, you simply use it in the following manner -

   1: @echo off
   2: Echo Creating Solution Package
   3: %WSPPBUILDER% -outputpath solution -Excludepaths bin

By doing the above, you are telling WSPBuilder to not include the defacto dll created. The above will work, but to further optimize your development, you could edit the project configuration to not build, and in the project properties, call Install.bat "Always" instead of "On every successful build".

That's it! Now you can deploy the sometimes uber-simple solutions you need to create, and still use WSPBuilder.


On 9/17/2008 4:17:50 PM Hal Diggs said ..
Exactly what I was looking for, thanks. You Rock!

Please post your comments:


Your feedback will be submitted for moderation, and will appear after it is approved.

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 

Site designed and maintained by Sahil Malik | All Rights Reserved. ©2007 WinSmarts.com.