-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please remove WASDK Dynamic dependencies packaged app limitation #4839
Comments
As you note this is ByDesign. WinAppSDK's implementation of Dynamic Dependencies depends on more than the Mdd*() APIs e.g. it also relies on the Bootstrapper API and the Microsoft.WinAppSDK.DDLLM.* (aka DDLM) packages being registered for the user. The latter aren't published to Store, and without them the WinAppSDK DynDep design doesn't hold water. Addressing this would require significant Store enhancements or increased complexity to you the packaged app developer (or possibly both). Or...packaged apps can declare static package dependencies ( Given the simple manifest option the added costs and friction to make WinAppSDK's Dynamic Dependency API work for packaged apps had too little ROI to justify. Alternatively, you use the OS Dynamic Dependency API. That has no restrictions on packaged vs unpackaged process -- all can use it. Does that meet your needs? |
Forehead. As you said, dynamic dependencies are introduced for packaged applications precisely because static dependencies don't meet the requirements. ---------------------------------额。正如您所说的,打包应用正是由于静态依赖项不能满足要求,所以才引入了动态依赖项。 |
Please remove WASDK Dynamic dependencies packaged app limitation
---------------------------------------
请删除 WASDK 动态依赖项打包的应用程序限制
My project uses WinUI 2 and WinUI 3 together, WinUI 2 and WinUI 3 contain both Microshot.ui.xaml.dll dependency libraries, and I need to use the MSIX dynamic dependency API to resolve this conflict. When I use the Windows App SDK dynamic dependency API, I find that the Windows App SDK dynamic dependency API is limited to non-packaged applications, and packaged applications will directly fail to call this function. Looking at the source code, we found that this is due to the fact that the WASDK's dynamic dependency API has actively restricted this, and we hope that the Windows App SDK team will remove this restriction and allow the packaged application to be called normally.
---------------------------------------
我的项目共同使用了 WinUI 2 和 WinUI 3,WinUI 2 和 WinUI 3 共同包含 Microsoft.UI.Xaml.dll 依赖库,需要使用 MSIX 动态依赖项 API 来解决这一冲突。当我使用 Windows App SDK 动态依赖项 API 时,发现 Windows App SDK 动态依赖项 API 仅限于非打包应用,打包应用调用该函数会直接失败。查看源代码发现,这是由于 WASDK 的动态依赖项 API 主动对此做出了限制,希望 Windows App SDK 团队能把这一限制去掉,允许打包应用程序正常调用。
WindowsAppSDK/dev/DynamicDependency/API/MsixDynamicDependency.cpp
Line 36 in aa9c8b8
#4819
The text was updated successfully, but these errors were encountered: