Mapper NETMAUI-ba
This commit is contained in:
@@ -5,6 +5,7 @@ using Microsoft.Extensions.Http;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using CommunityToolkit.Maui;
|
||||
using WorkFlowCheck.MAUI.DataLayer;
|
||||
using WorkFlowCheck.MAUI.Mapper;
|
||||
|
||||
namespace WorkFlowCheck.MAUI
|
||||
{
|
||||
@@ -13,6 +14,7 @@ namespace WorkFlowCheck.MAUI
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder.Services.AddAutoMapper(typeof(MapperProfile));
|
||||
// appsettings.json beállítása
|
||||
string jsonFilePath = Path.Combine(FileSystem.AppDataDirectory, "appsettings.json");
|
||||
// Másold a fájlt a Raw erőforrásokból az AppDataDirectory-ba, ha még nincs ott
|
||||
|
||||
Reference in New Issue
Block a user