toast_mcl/Program.cs

32 lines
884 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Avalonia;
using System;
using System.Runtime.InteropServices;
using toast_mcl;
namespace toast_mcl
{
internal class Program
{
// 初始化代码。
// 在调用AppMain之前请不要使用任何Avalonia、第三方API或任何依赖于SynchronizationContext的代码
// 因为这些东西尚未初始化,可能会导致错误。
[STAThread]
public static void Main(string[] args)
{
Base.Init();
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
// Avalonia配置请勿删除也被可视化设计器使用。
public static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithFont_LXGWWenKai()
.LogToTrace();
}
}
}