sa/Stars Assistant/Program.cs

41 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-07-19 17:08:37 +00:00
using System;
2024-07-23 07:40:10 +00:00
using Avalonia;
2024-09-11 18:04:20 +00:00
using Splat;
using Microsoft.EntityFrameworkCore;
using CsvHelper.Configuration;
using CsvHelper;
2024-08-15 19:46:43 +00:00
using StarsAssistant.Model;
using System.Globalization;
using Avalonia.ReactiveUI;
2024-07-23 07:40:10 +00:00
2024-08-15 19:46:43 +00:00
namespace StarsAssistant;
2024-07-23 07:40:10 +00:00
sealed 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.
[STAThread]
public static void Main(string[] args)
{
2024-09-11 18:04:20 +00:00
ModeDetector.OverrideModeDetector(Splat.ModeDetection.Mode.Run);
2024-09-17 18:20:42 +00:00
var logger = new ConsoleLogger() { Level = LogLevel.Debug };
Locator.CurrentMutable.RegisterConstant(logger, typeof(ILogger));
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
2024-07-23 07:40:10 +00:00
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace()
.UseReactiveUI();
}