25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
776 B

  1. using BlazorPages;
  2. using Microsoft.Extensions.Logging;
  3. namespace HybridApp
  4. {
  5. public static class MauiProgram
  6. {
  7. public static MauiApp CreateMauiApp()
  8. {
  9. var builder = MauiApp.CreateBuilder();
  10. builder
  11. .UseMauiApp<App>()
  12. .ConfigureFonts(fonts =>
  13. {
  14. fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
  15. });
  16. builder.Services.AddMauiBlazorWebView();
  17. builder.Services.AddScoped<MainPage>();
  18. builder.Services.Inject(isMobileApp: true);
  19. #if DEBUG
  20. builder.Services.AddBlazorWebViewDeveloperTools();
  21. builder.Logging.AddDebug();
  22. #endif
  23. return builder.Build();
  24. }
  25. }
  26. }