sharpshell icon indicating copy to clipboard operation
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

Open tfipsrd opened this issue 4 years ago • 1 comments

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

tfipsrd avatar Nov 25 '20 15:11 tfipsrd

Have you found a fix for this yet?

Raxizh avatar Nov 06 '23 19:11 Raxizh