基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-14 09d4e2f1a1bc206c80d8d3287d070c70ec7fd63d
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();