Creating WebPart distributables with NAnt

In my previous posting I described how to use NAnt to auto deploy webparts to Sharepoint. I just ran across the WPPackager tool from Microsoft which enables you to create MSI installers for the WebParts.

What is really cool about this tool is that the MSI sets Code Access Security policies for the webparts automatically. The tool is easily integrated with NAnt by simply using the exec task and supplying a wppackager xml setup file as a parameter:

<exec program="c:\buildserver\etc\tools\WPPackager\wppackager.exe" commandline="MyWebParts.xml" basedir="${dist.dir}" />

1 Comment

  • No, everybody needs to understand CAS and we are all set. I use WPPackager over any other deployment methods just because of this feature!



    Good point!



    Maxim



    [www.ipattern.com do you?]

Comments have been disabled for this content.