Replies: 4 comments 11 replies
-
Well, I'm not in a position to answer the why question since this would require someone from Microsoft to answer. There is also nothing in Windows.ApplicationModel in the latest canary SDK (Windows SDK 25387) to show that this exists or is currently in development. |
Beta Was this translation helpful? Give feedback.
-
Since WinRT is still not projected to most languages, it's the best option for Windows to export C API. Maybe in the future when WinRT is completely stable and usable, they choose to port WinRT-only API. |
Beta Was this translation helpful? Give feedback.
-
It's actually a pretty good place for it :-)
Not available yet but soon => DynamicDependencies: Use Win11 APIs if available #3704 There's some work remaining but given the interest I've shared some of the more stable bits. I have a more unstable build locally I'm fiddling with e.g. tests are blocked because the bootstrapper's not savvy yet. Working through the details. The goal is for WinAppSDK's Dynamic Dependency API to delegate to the OS' DynDep API if available, else use its own implementation to equivalent end (aka polyfill). This will happen in the WinAppSDK C API so all calls of WinAppSDK's C and WinRT DynDep API will benefit (including those using the C# projection). This has additional benefits, e.g. the DDLM packages are unnecessary (when the Win11 API's available). They're a workaround to make Windows DoTheRightThing(TM) e.g. not remove a package while dynamically in use. But Windows handles that now (when using the Win11 API). Likewise, WinAppSDK's DynDep only supporting unpackaged apps is a limitation of its implementation; we can lift that restriction using the Win11 API. You can see hints of this already in the draft PR, with more to come. |
Beta Was this translation helpful? Give feedback.
-
Depends on the root cause. I'll need to hunt up some WinUI and MRT experts to say more.
Does your issue with WinUI2 + WinAppSDK DynDep + Win11? Your issue doesn't say what OS you're running on when it fails, only that WinUI2 + Win11 DynDep + Win11 works. |
Beta Was this translation helpful? Give feedback.
-
(I know this is not the best place to ask this question, but this repository is where most of the discussion around dyndep happens and documented so I figured I might as well ask here)
In this doc, it is written that
Why is Windows 11's dynamic dependency not available in WinRT, but only available in plain C? It means C++ devs have to suffer from C style API (not ergonomic), and C# additionally has to write interop boilerplate. Is it an omission in the doc or?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions