One source of common user errors is misconfiguring services in DI. For example, setting up a singleton service that depends on a scoped service 😱. The DI system has a feature, scope validation, for detecting these issues, but we don't turn it on for .NET MAUI apps. We do enable scope validation in ASP.NET Core apps during development, but it doesn't look like we do that for .NET MAUI apps. It seems like we should.
@davidfowl
One source of common user errors is misconfiguring services in DI. For example, setting up a singleton service that depends on a scoped service 😱. The DI system has a feature, scope validation, for detecting these issues, but we don't turn it on for .NET MAUI apps. We do enable scope validation in ASP.NET Core apps during development, but it doesn't look like we do that for .NET MAUI apps. It seems like we should.
@davidfowl