Split common and GUI code into separate projects

This commit is contained in:
Matt Nadareski
2021-07-05 13:20:06 -07:00
parent 30e4573be6
commit 4efc58d0ef
35 changed files with 54 additions and 23 deletions

View File

@@ -0,0 +1,29 @@
using System;
#if WindowsDebug
using System.Runtime.InteropServices;
#endif
using Avalonia;
using Avalonia.Logging.Serilog;
namespace RedBookPlayer.GUI
{
internal class Program
{
[STAThread]
public static void Main(string[] args)
{
#if WindowsDebug
AllocConsole();
#endif
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
#if WindowsDebug
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool AllocConsole();
#endif
public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>().UsePlatformDetect().LogToDebug();
}
}