MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
231 stars 499 forks source link

PhoneLineTransportDevice.RegisterAPP Registration failed #2393

Closed engineerLuffy closed 1 year ago

engineerLuffy commented 1 year ago

[在此处输入反馈]

When I call this function in the WinUI framework, I can successfully register, but when I call this function in the WPF framework, it fails.


文档详细信息

请勿编辑此部分。 learn.microsoft.com ➟ GitHub 问题链接必须具有此部分。

alvinashcraft commented 1 year ago

Hi @engineerLuffy. Is your WPF app packaged with MSIX? Many of the WinRT APIs require package identity to function properly.

We sincerely apologize for the delayed response. The scope of this feedback channel covers specific documentation fixes, but I can help redirect you to the right support channel to get an answer to your question. The community of experts and Microsoft Engineers over at Microsoft Q&A offer timely answers to a multitude of technical questions surrounding the WinRT APIs. They can guide you to ensure that your application is configured to consume WinRT APIs that require package identity. We also have some documentation about modernizing WPF apps, packaging them, and how package identity works with desktop apps. You can start with this packaging topic: https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/modernize-wpf-tutorial-5

If you do create a thread over at Microsoft Q&A, we would appreciate if you could share that link here so we can track the progress and incorporate any technical details into our documentation. Though I'm marking this Issue as closed now, please treat this thread as an open thread for follow-ups. Thanks!