Skip to content
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

Open
Gaoyifei1011 opened this issue Oct 31, 2024 · 0 comments
Open

Please remove WASDK Dynamic dependencies packaged app limitation #4839

Gaoyifei1011 opened this issue Oct 31, 2024 · 0 comments
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-DynamicDependencies feature proposal

Comments

@Gaoyifei1011
Copy link

Gaoyifei1011 commented Oct 31, 2024

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 团队能把这一限制去掉,允许打包应用程序正常调用。


Image

RETURN_HR_IF(HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED), AppModel::Identity::IsPackagedProcess());

#4819

@Gaoyifei1011 Gaoyifei1011 changed the title Please remove WASDK Dynamic dependencies Packaged app limitation Please remove WASDK Dynamic dependencies packaged app limitation Oct 31, 2024
@codendone codendone added area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-DynamicDependencies feature proposal and removed needs-triage labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-DynamicDependencies feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants