aboutsummaryrefslogtreecommitdiff
path: root/Erable/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Erable/Program.cs')
-rw-r--r--Erable/Program.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Erable/Program.cs b/Erable/Program.cs
new file mode 100644
index 0000000..312bbb4
--- /dev/null
+++ b/Erable/Program.cs
@@ -0,0 +1,23 @@
+using System;
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.ReactiveUI;
+
+namespace Erable
+{
+ class Program
+ {
+ // 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.
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure<App>()
+ .UsePlatformDetect()
+ .LogToTrace()
+ .UseReactiveUI();
+ }
+}