How to upgrade Maui from .NET 7.0 to 8.0

David Friedel 6 Reputation points

Can someone please explain the secret to upgrading in Maui? XF, although painful, had a workflow that I could get the solution to move up, but with Maui, it is oddly even harder now.

I can't seem to select 8.0 from 7.0 on the property page because to migrate, libraries like Firebase and many more require specific call-outs at the end of the different types, e.g., net7.0-android32.0 vs simply putting net7.0-android, which required me to edit the project file to get the libraries to work initially.

Also during NuGet Manager on upgrading assemblies, because the projects are all under one project where before it was broken out individually, one (say android) will upgrade but the iOS sometimes will not, and then an entry appears under the consolidation tab - yet there is no way to identify which one failed unless I yet again edit the project file and hunt for it.

I understand the desire to have one project file from Microsoft's perspective - but first and foremost, it should be developer ease.

If I am missing an upgrade process, it would be greatly appreciated if you could direct me to it.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,179 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,756 Reputation points Microsoft Vendor


    For the upgrade of the MAUI project, you could use the official upgrade assistant plugin.

    Please refer to Overview of the .NET Upgrade Assistant for more details.

    If you are using a third-party Nuget package, please confirm that the plugin supports .net 8.0 before upgrading.

    Best Regards,

    Alec Liu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments