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

使用正式版 WinUI #750

Merged
merged 3 commits into from
Nov 10, 2023
Merged

使用正式版 WinUI #750

merged 3 commits into from
Nov 10, 2023

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented Nov 10, 2023

根据文档,XAML Islands 在非打包应用中只能使用预发行版本的 WinUI。WinUI 已经很久没有发布过预发行版本了,为了获得最新的修复,应想办法使用正式版本。

直接升级 WinUI 包会导致编译错误,因为正式版和预发行版包的结构不同:预发行版包含 dll、winmd 和 pri,而正式版只包含 AppX。这个 PR 中添加了一些编译脚本,当引用正式版 WinUI 时,提取出 AppX 包中的 dll 和 winmd 并添加对它们的引用。另外还有一些(很多) hack 来防止编译错误。

WinUI 从 2.8.2-prerelease 升级到 2.8.6。

@Blinue Blinue merged commit f66f192 into dev Nov 10, 2023
2 checks passed
@Blinue Blinue deleted the winui-release branch November 10, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant