Neighbourhood.omg.lol/MauiProgram.cs

24 lines
551 B
C#
Raw Normal View History

2024-05-30 01:06:08 +00:00
using Microsoft.Extensions.Logging;
namespace Neighbourhood.omg.lol {
public static class MauiProgram {
public static MauiApp CreateMauiApp() {
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts => {
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});
builder.Services.AddMauiBlazorWebView();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}