Hi,
I have a WPF application and i want to read contents of Windows.ApplicationModel.Package.Current object.
So during debug is there a way to emulate that package is installed , so that i debug ?
Regards
Hi,
I have a WPF application and i want to read contents of Windows.ApplicationModel.Package.Current object.
So during debug is there a way to emulate that package is installed , so that i debug ?
Regards
Hi,
Its a WPF app, but used to publish into store using desktop bridge (Application Packaging Project).
Regards
Are you trying to attach a Visual Studio debugger to a running WPF application so you can read the properties of the installed application that are not available to you when you are running and debugging your WPF application directly from inside Visual Studio?
Hello, Welcome to Micorosoft Q&A,
I have a WPF application and i want to read contents of Windows.ApplicationModel.Package.Current object.
Derive from document here,
Although Package is supported in desktop apps, this member is supported only in UWP apps. To access a package object from a desktop app, use Windows.Management.Deployment.PackageManager.
If you used WPF app, please use Windows.Management.Deployment.PackageManager to access the app's Package property.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi,
Meanwhile I found this and I am using Windows.ApplicationModel.Package.Current and it appears to give me right package name and version.
What is difference between Windows.ApplicationModel.Package.Current & Windows.Management.Deployment.PackageManager ??
Regards
Hi,
Thanks NicoZhu-MSFT, Is there a way to get ApplicationId/ProductID from Windows.ApplicationModel.Package.Current object or any other object ?
I wish to use it to invoke store review using : ms-windows-store://review/?ProductId={0}
Regards
8 people are following this question.
Open new UWP Window on multiple monitors
How can I detect the controls under a point in UWP
Install UWP app using sideload when the app is opened and running
How to migrate your UWP app from Visual Studio-2017 to Visual Studio-2022?
What is the exception that this code is throwing and how to fix it?