[!Tip] This guide assumes you used the Uno.Extensions dotnet new unoapp-extensions
template to create the solution. Instructions for creating an application from the template can be found here
If you want to access the DI container via the Ioc.Default API exposed via the CommunityToolkit.Mvvm, you need to configure the service collection after building the Host.
private IHost Host { get; } public App() { Host = UnoHost .CreateDefaultBuilder() .Build(); Ioc.Default.ConfigureServices(Host.Services); // ........ // }
ncG1vNJzZmitnqS9ra3Tn6arpZSksLTAwKCgp59er350etaemWebn6eyb8PIp5uor6Nju6bAjpqpraGTobK0e8Sxq56qnpa5cMHNqGWesKSau7S1zqeqaJyfmHyGxNOepayhn6PAcJDEqZynnJWjsLqVzaOcnKyZpLtwlM6wi6hlc6S6rsHNoquyjJ%2Bkuay102efraWc