microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 328 forks source link

Install dependent msix packages at F5 time for unpackaged [was: MrtCore unpackaged WinForms sample crashes] #2286

Open dotMorten opened 3 years ago

dotMorten commented 3 years ago

Run this sample: https://github.com/microsoft/Project-Reunion-Samples/tree/main/MrtCore/winforms_unpackaged_app

On startup the application crashes: image

dotMorten commented 3 years ago

So I missed the fine print about installing the reunion installer. Once that's done, the above error goes away (thanks @riverar) But that just leads me to a new question: Can we improve this developer experience, so the error is helpful? Or have the nuget just do the work and deploy what is needed.

And until then, have the sample check for this and report the error and what to do?

kevinguo305 commented 3 years ago

Thanks for the feedback! We’ll update the sample to show how to handle this case more cleanly.

AdamBraden commented 3 years ago

This is something we are tracking internally - getting the nuget packages to deploy the Dynamic Dependencies packages upon F5. I'll get a placeholder on the reunion repo.

angelazhangmsft commented 3 years ago

@rohanp-msft, has this issue been resolved/should this be assigned to you?

rohanp-msft commented 3 years ago

@angelazhangmsft it's not resolved AFAIK. I've assigned it to myself.

DrusTheAxe commented 3 years ago

This is something we are tracking internally - getting the nuget packages to deploy the Dynamic Dependencies packages upon F5

Tracked via https://task.ms/33356079

Not expected for 1.0

rohanp-msft commented 2 years ago

Here's the public feature request: https://winappsdk.productboard.com/insights/notes/unprocessed/notes/22415676. Closing this issue.

btueffers commented 2 years ago

Feature summary: for unpackaged apps, install dependent MSIX packages at F5 time instead of requiring a manual run of the installer.