My blog has moved!

Visit http://blog.adamroderick.com/ and update your bookmarks.

Friday, October 2, 2009

Easy Feature Deployment for SharePoint Development

This file has 4 .bat scripts that have helped our teams develop SharePoint Features more quickly.

The zip file contains a folder named Deployment, which has the following 5 files:
  • Deploy.bat - This will install then activate the Feature
  • Undeploy.bat - Ths will deactivate then uninstall the Feature
  • Redeploy.bat - This basically calls Undeploy then calls Deploy
  • Reactivate.bat - This deactivates then activates the Feature
  • Setup.bat - called by the other 4 scripts, will do nothing if you run it directly

All you have to do is put the Deployment folder into any feature folder, like this:

12\TEMPLATE\FEATURES\MyFeature\Deployment

The scripts will work for any Feature. They determine the Feature-specific information from the folder structure. You will want to change the URL parameter. Just edit Setup.bat and change change URL=http://localhost:5600 to whatever URL you want to use to activate the Feature.

Download Scripts

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home