You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WASDK PackageVolume is missing APIs related to FindPackageXXX #6222
Known item on the long-term desired roadmap. One reason it wasn't first out the gate is Find* returns a Package and we'd like to to have a Microsoft.Windows.ApplicationModel.Package offering the same gaggle of quality-of-life, feature enhancements and so on as e.g. WinAppSDK's PackageDeploymentManager and ApplicationData offer over their Windows.* counterparts. But W.AM.Package is big (relatively speaking) and other priorities were more urgent, so Find*() and Package and friends aren't available. Yet.
Another enhancement over the OS Package is the latter is a snapshot of (most) properties when the object is constructed. The upside is it's stable - nothing so fun as a 'live' object's data changing in the middle of use. The downside is perf - you pay for it even if you need only a subset. Fractional and deferred data resolution is another feature you get hints of in M.AM.Package.idl. I have ideas for additional improvements (perf and functional).
Package has some related types we'll need to address - PackageId, PackageStatus, AppListEntry, AppInfo, AppDisplayInfo and so forth. Package is the likely forerunner here, for both its value/ROI and foundational nature (hard to do most of the others w/o Package).
Another is the Find* APIs themselves. The current PackageManager.Find*() are somewhat inconsistent and asymetric. This shouldn't be a surprise, given PackageManager was one of the first WinRT APIs created and it's been under regular organic evolution the past ~15yrs. WinRT API design practices have evolved over the years in many good ways, but backwards compatibility can make more expansive PackageManager enhancements difficult to deliver. PackageDeploymentManager intentionally offers no Find*() to leave the field open for when we're ready to add them, without having to compromise best-practices.
If Find*(), Package and friends interest you please leave your feedback here. What would you like to see? What pain points have you found with the current APIs? What do you wish were more functional, more performant, more convenient to use, or other goals or reasons? Let us know.
Known item on the long-term desired roadmap. One reason it wasn't first out the gate is Find* returns a Package and we'd like to to have a Microsoft.Windows.ApplicationModel.Package offering the same gaggle of quality-of-life, feature enhancements and so on as e.g. WinAppSDK's PackageDeploymentManager and ApplicationData offer over their Windows.* counterparts. But W.AM.Package is big (relatively speaking) and other priorities were more urgent, so Find*() and Package and friends aren't available. Yet.
Another enhancement over the OS Package is the latter is a snapshot of (most) properties when the object is constructed. The upside is it's stable - nothing so fun as a 'live' object's data changing in the middle of use. The downside is perf - you pay for it even if you need only a subset. Fractional and deferred data resolution is another feature you get hints of in M.AM.Package.idl. I have ideas for additional improvements (perf and functional).
Package has some related types we'll need to address - PackageId, PackageStatus, AppListEntry, AppInfo, AppDisplayInfo and so forth. Package is the likely forerunner here, for both its value/ROI and foundational nature (hard to do most of the others w/o Package).
Another is the Find* APIs themselves. The current PackageManager.Find*() are somewhat inconsistent and asymetric. This shouldn't be a surprise, given PackageManager was one of the first WinRT APIs created and it's been under regular organic evolution the past ~15yrs. WinRT API design practices have evolved over the years in many good ways, but backwards compatibility can make more expansive PackageManager enhancements difficult to deliver. PackageDeploymentManager intentionally offers no Find*() to leave the field open for when we're ready to add them, without having to compromise best-practices.
If Find*(), Package and friends interest you please leave your feedback here. What would you like to see? What pain points have you found with the current APIs? What do you wish were more functional, more performant, more convenient to use, or other goals or reasons? Let us know.
This is my app, and I want to implement an app moving feature, similar to how Windows allows you to set the display. This requires finding the PackageVolume where the app is located and the remaining PackageVolume on the device, so the PackageVolume.FindPackageForUser API is used.
Move in WinAppSDK would be nice but I don't see its gap as a showstopper. The Windows (OS) APIs are still available. Perhaps not as nice as the WinAppSDK equivalents :-) but still quite functional.
Why do you think you need the PackageVolume where the app is located?
And if you do for some reason I'm not seeing, why are the current Windows.* (OS) APIs not sufficient?
Move in WinAppSDK would be nice but I don't see its gap as a showstopper. The Windows (OS) APIs are still available. Perhaps not as nice as the WinAppSDK equivalents :-) but still quite functional.
Why do you think you need the PackageVolume where the app is located?
And if you do for some reason I'm not seeing, why are the current Windows.* (OS) APIs not sufficient?
Currently, WASDK's PackageVolume is an advanced wrapper around the system's PackageVolume. In my application, I have already switched a large number of WinRT PackageVolume to WASDK PackageVolume. However, there are still some WinRT PackageVolume that do not have a direct mapping to WASDK PackageVolume. As a result, after using WASDK PackageVolume, I have to switch to WinRT PackageVolume through other means to call these missing methods. This is particularly inconvenient, so I hope the WASDK team can continue to improve the wrapping of WinRT PackageVolume or expose WinRT PackageVolume for easier access.
-------------------------------
The Msix Hero app has already implemented the functionality of this module, so I also want to implement this module's functionality in my app.
Activity
Gaoyifei1011 commentedon Feb 17, 2026
Howard Kapustein (@DrusTheAxe)
DrusTheAxe commentedon Feb 18, 2026
Not missing. Intentionally not tackled - yet.
Known item on the long-term desired roadmap. One reason it wasn't first out the gate is Find* returns a
Packageand we'd like to to have aMicrosoft.Windows.ApplicationModel.Packageoffering the same gaggle of quality-of-life, feature enhancements and so on as e.g. WinAppSDK'sPackageDeploymentManagerandApplicationDataoffer over their Windows.* counterparts. But W.AM.Package is big (relatively speaking) and other priorities were more urgent, so Find*() and Package and friends aren't available. Yet.For a taste of the direction see M.AM.Package.idl.
Another enhancement over the OS Package is the latter is a snapshot of (most) properties when the object is constructed. The upside is it's stable - nothing so fun as a 'live' object's data changing in the middle of use. The downside is perf - you pay for it even if you need only a subset. Fractional and deferred data resolution is another feature you get hints of in M.AM.Package.idl. I have ideas for additional improvements (perf and functional).
Packagehas some related types we'll need to address -PackageId,PackageStatus,AppListEntry,AppInfo,AppDisplayInfoand so forth.Packageis the likely forerunner here, for both its value/ROI and foundational nature (hard to do most of the others w/oPackage).Another is the Find* APIs themselves. The current PackageManager.Find*() are somewhat inconsistent and asymetric. This shouldn't be a surprise, given
PackageManagerwas one of the first WinRT APIs created and it's been under regular organic evolution the past ~15yrs. WinRT API design practices have evolved over the years in many good ways, but backwards compatibility can make more expansive PackageManager enhancements difficult to deliver.PackageDeploymentManagerintentionally offers noFind*()to leave the field open for when we're ready to add them, without having to compromise best-practices.If
Find*(),Packageand friends interest you please leave your feedback here. What would you like to see? What pain points have you found with the current APIs? What do you wish were more functional, more performant, more convenient to use, or other goals or reasons? Let us know.Gaoyifei1011 commentedon Feb 18, 2026
This is my app, and I want to implement an app moving feature, similar to how Windows allows you to set the display. This requires finding the PackageVolume where the app is located and the remaining PackageVolume on the device, so the PackageVolume.FindPackageForUser API is used.
DrusTheAxe commentedon Feb 22, 2026
I don't see why. PackageManager.MovePackageToVolumeAsync takes 3 parameters:
Move in WinAppSDK would be nice but I don't see its gap as a showstopper. The Windows (OS) APIs are still available. Perhaps not as nice as the WinAppSDK equivalents :-) but still quite functional.
Why do you think you need the PackageVolume where the app is located?
And if you do for some reason I'm not seeing, why are the current Windows.* (OS) APIs not sufficient?
Gaoyifei1011 commentedon Feb 26, 2026
目前
WASDK的PackageVolume是系统 PackageVolume的高级包装,我在我的应用中,已经将大量的WinRT PackageVolume切换到WASDK PackageVolume,但是仍然有部分WinRT PackageVolume没有直接映射到WASDK PackageVolume,故我使用了WASDK PackageVolume后,调用这些缺失的方法,不得不通过其他路径切换到WinRT PackageVolume调用对应的方法,这一点尤为不便,所以希望 WASDK 团队能继续完善对WinRT PackageVolume的包装,或者漏出WinRT PackageVolume方便调用Currently, WASDK's PackageVolume is an advanced wrapper around the
system's PackageVolume. In my application, I have already switched a large number ofWinRT PackageVolumetoWASDK PackageVolume. However, there are still someWinRT PackageVolumethat do not have a direct mapping toWASDK PackageVolume. As a result, after usingWASDK PackageVolume, I have to switch toWinRT PackageVolumethrough other means to call these missing methods. This is particularly inconvenient, so I hope the WASDK team can continue to improve the wrapping ofWinRT PackageVolumeor exposeWinRT PackageVolumefor easier access.-------------------------------
The Msix Hero app has already implemented the functionality of this module, so I also want to implement this module's functionality in my app.
Msix Hero 应用已经实现了这一模块的功能,所以我也想在我的应用中实现这一模块的功能。
