# Conflicts: # RBLNews.Maui/MauiProgram.cs # RBLNews.Shared/Components/Pages/Home.razor # RBLNews.Shared/RBLNews.Shared.csproj # RBLNews.Shared/_Imports.razor # RBLNews.Web/Components/App.razor # RBLNews.Web/Components/_Imports.razor # RBLNews.Web/Program.cs
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using CommunityToolkit.Maui;
|
|
using CommunityToolkit.Maui.Markup;
|
|
using Microsoft.Extensions.Logging;
|
|
using RBLNews.Shared.Services;
|
|
|
|
namespace RBLNews.Maui
|
|
{
|
|
public static class MauiProgram
|
|
{
|
|
public static MauiApp CreateMauiApp()
|
|
{
|
|
var builder = MauiApp.CreateBuilder();
|
|
builder
|
|
.UseMauiApp<App>()
|
|
.UseMauiCommunityToolkit()
|
|
.UseMauiCommunityToolkitMarkup()
|
|
.ConfigureFonts(fonts =>
|
|
{
|
|
//fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
|
fonts.AddFont("NanumMyeongjo-Regular.ttf", "NanumMyeongjoRegular");
|
|
});
|
|
|
|
builder.Services.AddMauiBlazorWebView();
|
|
<<<<<<< HEAD
|
|
|
|
#if DEBUG
|
|
builder.Services.AddBlazorWebViewDeveloperTools();
|
|
builder.Logging.AddDebug();
|
|
=======
|
|
builder.Services.AddBlazorBootstrap();
|
|
|
|
builder.Services.AddSingleton<IFeedDataService, FeedDataService>();
|
|
builder.Services.AddSingleton<AppLifecycleService>();
|
|
|
|
#if DEBUG
|
|
builder.Services.AddBlazorWebViewDeveloperTools();
|
|
builder.Logging.AddDebug();
|
|
>>>>>>> css_bootstrap_blazor
|
|
#endif
|
|
|
|
return builder.Build();
|
|
}
|
|
}
|
|
}
|