yavsc/src/PostIt/PostIt.Desktop/Program.cs

28 lines
787 B
C#
Raw Normal View History

using System;
2026-05-29 01:29:36 +01:00
using Avalonia;
2026-05-28 22:18:26 +01:00
2026-05-29 01:29:36 +01:00
namespace PostIt.Desktop;
2026-05-28 22:18:26 +01:00
2026-05-29 01:29:36 +01:00
sealed class Program
2026-05-28 22:18:26 +01:00
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args)
{
PlatformBootstrap.EnsureInitialized();
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
2026-05-28 22:18:26 +01:00
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
#if DEBUG
.WithDeveloperTools()
#endif
.WithInterFont()
.LogToTrace();
}