2023-01-20 23:08:33 +08:00
|
|
|
|
using System.Runtime.Versioning;
|
2023-06-04 23:10:03 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2023-01-20 23:08:33 +08:00
|
|
|
|
using Avalonia;
|
2023-02-01 21:49:43 +08:00
|
|
|
|
using Avalonia.Browser;
|
2023-01-20 23:08:33 +08:00
|
|
|
|
|
|
|
|
|
[assembly: SupportedOSPlatform("browser")]
|
|
|
|
|
|
2023-06-04 23:10:03 +08:00
|
|
|
|
namespace Semi.Avalonia.Demo.Web;
|
|
|
|
|
|
2024-03-12 17:16:23 +08:00
|
|
|
|
internal sealed partial class Program
|
2023-01-20 23:08:33 +08:00
|
|
|
|
{
|
2024-03-12 17:16:23 +08:00
|
|
|
|
private static Task Main(string[] args) => BuildAvaloniaApp()
|
2024-07-11 03:17:15 +08:00
|
|
|
|
.WithSourceHanSansCNFont()
|
2023-06-04 23:10:03 +08:00
|
|
|
|
.StartBrowserAppAsync("out");
|
2023-01-20 23:08:33 +08:00
|
|
|
|
|
|
|
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
|
|
|
=> AppBuilder.Configure<App>();
|
|
|
|
|
}
|