markus / MarkusAutoUpdate / src / NetSparkle.Samples.Avalonia / Program.cs @ 63946dd5
이력 | 보기 | 이력해설 | 다운로드 (772 Bytes)
1 | d8f5045e | taeseongkim | using System; |
---|---|---|---|
2 | using Avalonia; |
||
3 | using Avalonia.Controls.ApplicationLifetimes; |
||
4 | using Avalonia.Logging.Serilog; |
||
5 | |||
6 | namespace NetSparkleUpdater.Samples.Avalonia |
||
7 | { |
||
8 | class Program |
||
9 | { |
||
10 | // Initialization code. Don't use any Avalonia, third-party APIs or any |
||
11 | // SynchronizationContext-reliant code before AppMain is called: things aren't initialized |
||
12 | // yet and stuff might break. |
||
13 | public static void Main(string[] args) => BuildAvaloniaApp() |
||
14 | .StartWithClassicDesktopLifetime(args); |
||
15 | |||
16 | // Avalonia configuration, don't remove; also used by visual designer. |
||
17 | public static AppBuilder BuildAvaloniaApp() |
||
18 | => AppBuilder.Configure<App>() |
||
19 | .UsePlatformDetect() |
||
20 | .LogToDebug(); |
||
21 | } |
||
22 | } |