After consulting, some informative links provided.
Integrate your desktop app with Windows using packaging extensions - Windows apps | Microsoft Learn
Status of Shell Extensions like Context Menus - Microsoft Tech Community
Support legacy context menus - MSIX | Microsoft Learn
It seems it is not supported by the appxmanifest schema and packaging.
How to use the Shell Namespace Extension in packaged apps?
I am creating a cloud storage drive and have successfully implemented it using Windows Cloud Files API. I have packaged it using the Visual Studio packaging project.
However, I have a requirement for certain folders that do not sync with the cloud and traditionally are implemented as Shell Namespace Extensions. Here are my requirements:
- Create a “virtual” folder that does not exist on the cloud server and does not participate in syncing. It is just a representation of other files that are on my cloud server (or locally), for example, the “Contracts” folder or the “Photos 2021” folder.
- Such folders must be read-only or have certain limitations. For example, users can not create subfolders and/or files. No files/folders can be dragged inside such folder, and the user must see the appropriate cursor state when dragging over such folder.
- The user should NOT see the New Folder context menu and other menus for creating new files and folders inside such folders.
I wanted to create a Shell Namespace Extension for such folders but it looks like the current appx/manifest schema does not allow the packaging of Shell Namespace Extensions.
Are there any plans to extend the Package.appxmanifest schema for Shell Namespace Extensions?
Or is there any other approach for creating such read-only folders except Shell Namespace Extensions?
1 answer
Sort by: Most helpful
-
Xiaopo Yang - MSFT 11,336 Reputation points Microsoft Vendor
2021-10-14T03:27:20.273+00:00