2021-06-29 21:00:34 -07:00
|
|
|
using System;
|
2021-06-29 13:49:37 -07:00
|
|
|
#if WindowsDebug
|
2021-06-06 21:55:05 -07:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
#endif
|
|
|
|
|
using Avalonia;
|
2021-03-19 17:07:27 -03:00
|
|
|
using Avalonia.Logging.Serilog;
|
|
|
|
|
|
2021-07-05 13:20:06 -07:00
|
|
|
namespace RedBookPlayer.GUI
|
2021-03-19 17:07:27 -03:00
|
|
|
{
|
2021-06-06 20:28:36 +01:00
|
|
|
internal class Program
|
2021-03-19 17:07:27 -03:00
|
|
|
{
|
2021-06-29 21:00:34 -07:00
|
|
|
[STAThread]
|
2021-03-19 17:07:27 -03:00
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2021-06-29 13:49:37 -07:00
|
|
|
#if WindowsDebug
|
2021-03-19 17:07:27 -03:00
|
|
|
AllocConsole();
|
2021-06-29 13:49:37 -07:00
|
|
|
#endif
|
2021-03-19 17:07:27 -03:00
|
|
|
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-29 13:49:37 -07:00
|
|
|
#if WindowsDebug
|
2021-03-19 17:07:27 -03:00
|
|
|
[DllImport("kernel32.dll", SetLastError = true)]
|
|
|
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
|
|
|
static extern bool AllocConsole();
|
2021-06-29 13:49:37 -07:00
|
|
|
#endif
|
2021-03-19 17:07:27 -03:00
|
|
|
|
2021-06-06 20:28:36 +01:00
|
|
|
public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>().UsePlatformDetect().LogToDebug();
|
2021-03-19 17:07:27 -03:00
|
|
|
}
|
2021-06-06 20:28:36 +01:00
|
|
|
}
|