Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace MvxSetup and related code with Microsoft.Extensions.Hosting #4437

Open
2 tasks
Cheesebaron opened this issue Jul 14, 2022 · 2 comments
Open
2 tasks

Comments

@Cheesebaron
Copy link
Member

Cheesebaron commented Jul 14, 2022

The trend in the .NET ecosystem looks to be to implement Microsoft.Extensions.Hosting to build the Application, setup various services, setup fonts (MAUI) and much more.

We should look into replacing MvxSetup and reworking the startup procedure of MvvmCross and adopt Microsoft.Extensions.Hosting.

While working on this, we should ditch MvxSplashScreen on Android, and move all startup to an instance of Application.

  • Remove MvxSplashScreen
  • Replace MvxSetup with implementation of Microsoft.Extensions.Hosting
@afernandes
Copy link

I'm trying to implement IoC and Hosting and make the adjustments to make MAUI work, but I'm having a problem that seems simple, but I'm not able to solve it...
I created a blank MAUI project (Playground.Maui) to do the tests, but I can't compile it.
I've already tried to make adjustments to csproj, Directory.Build.props, etc., but without success.

Can you help me?

https://github.com/afernandes/MvvmCross/tree/Maui

image

image

@afernandes
Copy link

I managed to get it to work by ignoring the Directory.Build.props in the Playground.Maui project for now.
I'm making good progress with the adjustments, but there's still a long way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants