Update Program.cs
This commit is contained in:
Родитель
2860b17c0b
Коммит
a51a2d3268
|
@ -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<App>();
|
||||
=> AppBuilder
|
||||
.Configure<App>();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче