Files
PLib/src/PLib.Desktop/Program.cs
T

19 lines
611 B
C#

using Avalonia;
namespace PLib.Desktop;
internal static class Program
{
// Avalonia must be initialised before anything touches its types, so keep Main free of
// any other work and let App own the application host.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
/// <summary>Also used by the XAML previewer, which requires this exact signature.</summary>
public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}