From a51a2d3268ff41afc5f01f6b229fed9f068cd801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20S=CC=8Colte=CC=81s?= Date: Wed, 24 Jul 2024 23:33:17 +0200 Subject: [PATCH] Update Program.cs --- src/TypefaceUtilAvalonia.Web/Program.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/TypefaceUtilAvalonia.Web/Program.cs b/src/TypefaceUtilAvalonia.Web/Program.cs index 97f7c37..6b13d99 100644 --- a/src/TypefaceUtilAvalonia.Web/Program.cs +++ b/src/TypefaceUtilAvalonia.Web/Program.cs @@ -1,14 +1,17 @@ using System.Runtime.Versioning; +using System.Threading.Tasks; using Avalonia; +using Avalonia.Browser; using TypefaceUtil.Avalonia; [assembly:SupportedOSPlatform("browser")] internal class Program { - private static void Main(string[] args) - => BuildAvaloniaApp().SetupBrowserApp("out"); + private static async Task Main(string[] args) + => await BuildAvaloniaApp().StartBrowserAppAsync("out"); public static AppBuilder BuildAvaloniaApp() - => AppBuilder.Configure(); + => AppBuilder + .Configure(); }