'ComServerAssociation' Could not be found

May 18, 2013 at 9:21 AM
The error I get is:
The type or namespace name 'ComServerAssociation' could not be found (are you missing a using directive or an assembly reference?)

Here is my code:
    [ComVisible(true)]
    [ComServerAssociation(AssociationType.AllFiles)]
    public class ContextMenuTest : SharpContextMenu
    {
        ...
    }
How do I fix this?
Coordinator
May 19, 2013 at 3:48 PM
Make sure you have the line:
using SharpShell.Attributes;
at the top of the file. For a context menu, you'll need:
using SharpShell.SharpContextMenu;
as well