sharpshell
sharpshell copied to clipboard
AssociationType.ClassOfExtension is not working when selecting different format like .txt .pdf .xml, it is only working with AllFiles or with only .txt
Version of SharpShell used: 2.7.2
Hello, I'm trying to get my context menu for specific file format.
It is only working if I use this [COMServerAssociation(AssociationType.AllFiles)] Or if I use this: [COMServerAssociation(AssociationType.ClassOfExtension, ".txt")]
Whenever I select another single file format or several , it does not work. [COMServerAssociation(AssociationType.ClassOfExtension, ".pdf")] or [COMServerAssociation(AssociationType.ClassOfExtension, ".jpg", ".png", ".bmp")]
I read that we could try with the obsolete FileExtension, but it doesn't help. Should we filter the file format in the CanShowMenu() as a workaround?
Thanks for your help,
Thib
Have you found a fix for this yet?