-
-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
Giuseppe Novielli edited this page Feb 25, 2023
·
5 revisions
Add nuget package only .net standard project, it doesn't have platform specific references.
https://www.nuget.org/packages/MvvmCrud.Forms.Prism
Install-Package MvvmCrud.Forms.Prism -Version 0.0.1
into App.xaml.cs add the following code
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
MVVMCrudApplication.RegisterServices(containerRegistry);
}
Add nuget package it doesn't have platform specific references.
https://www.nuget.org/packages/MvvmCrud.Maui.Prism
dotnet add package MvvmCrud.Maui.Prism --version 0.0.2
into MauiProgram.cs add the following code
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UsePrism(prism =>
prism.RegisterTypes(containerRegistry =>
{
MVVMCrudApplication.RegisterServices(containerRegistry);
})
.OnInitialized((IContainerProvider obj) =>
{
//See Sample folder -> maui_net7
var mvvmCrud = new CustomMVVMCrud();
})
.OnAppStart(async navigationService =>
{
})
)
#if DEBUG
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
Done!