基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-14 b84db8983d63a9a981083ebce1a139860c6bdf25
src/Moli.Desktop/App.xaml.cs
@@ -20,6 +20,7 @@
        _host = DesktopHostBuilder.Create(e.Args).Build();
        await _host.StartAsync();
        await _host.Services.GetRequiredService<IDefaultContentInstaller>().InstallAsync();
        await _host.Services.GetRequiredService<IDesktopRuntime>().StartAsync();
        await _host.Services.GetRequiredService<ITrayShell>().StartAsync();