microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 322 forks source link

Please update the WebView 2 dependencies of Windows App SDK and WinUI 2 to 1.0.2849.39 to adapt to Native AOT #4832

Open Gaoyifei1011 opened 2 weeks ago

Gaoyifei1011 commented 2 weeks ago

Describe the bug

Please update the WebView 2 dependencies of Windows App SDK and WinUI 2 to 1.0.2849.39 to adapt to Native AOT

----------------------------------------

请将 Windows App SDK 和 WinUI 2 的 WebView 2 依赖包更新到 1.0.2849.39 以适配 Native AOT


Steps to reproduce the bug

The current version of WebView2 in the WinUI 2 Projection in the Windows App SDK and draft Github PR request is 1.0.2651.64, which does not adapt to Native AOT, and I hope that the next version of Windows App SDK and WinUI 2 can be upgraded to the version of WebView2 that has been adapted to Native AOT when it is released, so as to ease the use of WebView 2 by users controls.

----------------------------------------

目前的 Windows App SDK 和草稿 Github PR 请求中的 WinUI 2 Projection 中的 WebView2 的版本是 1.0.2651.64,这个版本没有适配 Native AOT,希望下一个 Windows App SDK 和 WinUI 2 版本发布时能升级到已经适配 Native AOT 的 WebView2 版本,减轻用户使用 WebView 2 控件时发生的意外错误。


Expected behavior

Hope that the next version of Windows App SDK and WinUI 2 can be upgraded to the version of WebView2 that has been adapted to Native AOT when it is released, so as to ease the use of WebView 2 by users controls.

----------------------------------------

希望下一个 Windows App SDK 和 WinUI 2 版本发布时能升级到已经适配 Native AOT 的 WebView2 版本,减轻用户使用 WebView 2 控件时发生的意外错误。


Screenshots

Windows App SDK Image

WinUI 2 Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

Additional context


Refer link(参考链接)

https://github.com/microsoft/microsoft-ui-xaml/pull/9976 https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.6.240923002

RDMacLachlan commented 2 weeks ago

We are working on that, but you can always set an explicit WebView2 package reference to override the one built-in to the WinAppSDK.