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}" />