Windows 10/11 Custom Shell Context Menu items in C# (WinUI-3) using WinUICommunity/ShellContextMenu
I'm working on some WinUI-3 C# app trying to add a single item to Explorer's Context Menu.
I found this library, ShellContextMenu (https://github.com/WinUICommunity/ShellContextMenu)
Which apparently lets you do just that!
There isn't much documentation about it.
The first part of the instructions say to add some code to
package.appxmanifest
I tried adding the xmlns
lines to the Package block and then adding the Exentions block in.
But, that gives me an error that I don't even know what it means:
I tried looking for other ways to do this but no luck. So I think my current option is to try this library.
I'd appreciate any help,
this is literally my first time using C#, WinUI.
After searching for a whole day, at first it looked like a hell, but now it does feel like one 💀GitHub
GitHub - WinUICommunity/ShellContextMenu: add a new ContextMenu for...
add a new ContextMenu for Windows 11/10. Contribute to WinUICommunity/ShellContextMenu development by creating an account on GitHub.
4 Replies
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
can you show what your appxmanifest looks like fully
I figured out that I needed to add the Extensions inside of the Applications.Application block.
The problem is that now I got two of them. I think I registered one before and then removed and uninstalled that app to see what would happen and now there are two
Open With
menus with two submenus each. and neither show up on the classic menu
I'm not sure if it's because of the library or not. I tried looking into how it was done for VSCode and NanaZip but couldn't really understand what was happening and I only saw IExplorerCommand cpp files which I think are for the older context menu?Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.