26 lines
620 B
C#
26 lines
620 B
C#
|
using CommunityToolkit.Maui;
|
|||
|
using Microsoft.Extensions.Logging;
|
|||
|
|
|||
|
namespace autosos_maui;
|
|||
|
|
|||
|
public static class MauiProgram
|
|||
|
{
|
|||
|
public static MauiApp CreateMauiApp()
|
|||
|
{
|
|||
|
var builder = MauiApp.CreateBuilder();
|
|||
|
builder
|
|||
|
.UseMauiApp<App>()
|
|||
|
.UseMauiCommunityToolkit()
|
|||
|
.ConfigureFonts(fonts =>
|
|||
|
{
|
|||
|
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
|||
|
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
|||
|
});
|
|||
|
|
|||
|
#if DEBUG
|
|||
|
builder.Logging.AddDebug();
|
|||
|
#endif
|
|||
|
|
|||
|
return builder.Build();
|
|||
|
}
|
|||
|
}
|