SharePoint 2010 Ribbon Development

Ribbon development is probably one of the most frustrating things you can do when developing SharePoint 2010 solutions, for one simple reason.

How many times have you changed the element.xml file to change where your new button will appear only to find that no matter how many times you deploy, there it is, in exactly the same place.

You might try:

  1. Retracting the solution in Visual Studio 2010.  Won’t work.
  2. Using PowerShell, Uninstall-SPUserSolution then Remove-SPUserSolution.  Won’t work.
  3. Restart the sandbox service, NET STOP SPUserCodeV4, then start again.  Won’t work.
  4. Check out C:ProgramDataMicrosoftSharePointUCCache and (against all advice), clean it out. Won’t work.
  5. Swearing at the laptop.  Won’t work (I tried this one lots).

After countless Internet searches I’ve found two solutions, and fortunately, they’re really simple:

  1. Update the feature version each deployment.
  2. Test out the site using InPrivate mode, or equivalent, in the browser; close the window and restart again between deployments.

Original articles SharePoint 2010 Ribbon customizations not working as expected and SharePoint 2010: Modifying and Deploying Ribbon doesn’t update the ribbon.

This entry was posted in SharePoint. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.