I was trying to implement an AddIn that modified the context menu for project items. Specifically, C# files. After poking around for a couple of hours, I succeeded. Adding a menu item (or CommandBarControl) is relatively simple. What was complicated was