Microsoft.Maui.Controls - version

Dani_S 4,501 Reputation points
2025-02-06T12:33:37.63+00:00

Hi,

<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />

Should I need to specify the real version in net 9 ?

Thanks,

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2025-02-07T01:25:04.5+00:00

    Hello,

    Yes, according to the Maui .net 9 documentation, you need to specify the version of Microsoft.Maui.Controls to .net 9.

    If your app's project file references a .NET 8 version of the Microsoft.Maui.Controls NuGet package, either directly or through the $(MauiVersion) build property, update this to a .NET 9 version.

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.