wabbajack/Wabbajack.Launcher/Program.cs

26 lines
911 B
C#
Raw Normal View History

2021-10-23 16:51:17 +00:00
using Avalonia;
2021-10-08 13:16:51 +00:00
using Avalonia.ReactiveUI;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.Launcher;
// To Build : dotnet publish -r win-x64 -c Release -p:PublishReadyToRun=true --self-contained -o c:\tmp\publish -p:PublishSingleFile=true -p:DebugType=embedded -p:IncludeAllContentForSelfExtract=true
internal class Program
2021-10-08 13:16:51 +00:00
{
2021-10-23 16:51:17 +00:00
// 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)
2021-10-08 13:16:51 +00:00
{
2021-10-23 16:51:17 +00:00
BuildAvaloniaApp()
2021-10-08 13:16:51 +00:00
.StartWithClassicDesktopLifetime(args);
2021-10-23 16:51:17 +00:00
}
2021-10-08 13:16:51 +00:00
2021-10-23 16:51:17 +00:00
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToTrace()
.UseReactiveUI();
2021-10-08 13:16:51 +00:00
}
2021-10-23 16:51:17 +00:00
}