Ribbon XML Schema Support in Visual Studio
So I'm currently working on creating an add-in for Word 2007 – and as a part of that, I've added some new functionality to my ribbon. As I'm sure those of you who have done this are aware, VSTO adds 2 new files to your add-in project when you add ribbon support – a managed code file and an XML file. When I went to create the XML markup for the ribbon UI, I was dismayed to discover that Visual Studio could not find the correct XSD schema that corresponded to the ribbon namespace. This is annoying as it means that I don't get IntelliSense help for discovering elements and attributes in the ribbon XML. Fortunately, I was sitting next to one of the product group guys at the time so I asked him what the problem was. The answer is actually pretty simple. The ribbon schema is contained in an XSD file called CustomUI.xsd and is deployed into a localized folder (1033) under the '{Program Files}\Microsoft Visual Studio 8\Xml\Schemas'. The only problem with this is that Visual Studio doesn't pick up this folder when it builds its list of recognized schema. The solution, then, is to simply copy the CustomUI.xsd file from the '1033' folder into the parent 'Schemas' folder.
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
Leave a Comment
About hdierking
I am currently the Editor-in-Chief for MSDN Magazine. I joined Microsoft in 2006 as a product planner with the certification team at Microsoft Learning. Prior to that, I spent my career as a developer and later as an architect. My main technology passions include pretty much anything on language theory, agile development, and service-oriented architecture.