Any one have any docs or examples of how to add menu items to the explorer shell with .NET.
Can only find info saying it should be possible now with .NET 4.0 but not how to do it.
MSDN Magazine had an article about managed shell extensions long back in 2004:
Create Namespace Extensions for Windows Explorer with the .NET Framework
I don't think that the basic mechanism has changed in .NET 4.0. The difference though is that with .NET 4.0 you can safely ignore the red warning on top of that article ("...Microsoft recommends against writing managed shell extensions...") because version 4.0 of the CLR can be hosted side-by-side with other versions in the same process. This has previously not been possible.
Update:
The All-In-One Code Framework now contains an example for managed shell extensions (CSShellExtContextMenuHandler).
Even using .NET 4, with side-by-side execution, writing a managed shell extension might not be a good idea: According to Microsoft employee Jialiang Ge, "Microsoft [...] has not determined whether it will support managed shell extensions for the long term [...] Microsoft [...] will not support managed shell extensions and recommends against writing them."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With