Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
根据文档,XAML Islands 在非打包应用中只能使用预发行版本的 WinUI。WinUI 已经很久没有发布过预发行版本了,为了获得最新的修复,应想办法使用正式版本。
直接升级 WinUI 包会导致编译错误,因为正式版和预发行版包的结构不同:预发行版包含 dll、winmd 和 pri,而正式版只包含 AppX。这个 PR 中添加了一些编译脚本,当引用正式版 WinUI 时,提取出 AppX 包中的 dll 和 winmd 并添加对它们的引用。另外还有一些(很多) hack 来防止编译错误。
WinUI 从 2.8.2-prerelease 升级到 2.8.6。