How to tie a Maui project to a specific version of Maui

John Hair 371 Reputation points
2022-09-03T06:13:52.553+00:00

With XF we have nuget packages and can build the right version every time in a more deterministic model (think CICD pipelines etc).

With Maui, everything is workload based. How do we specify in the Maui projects what version of Maui to use?

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

2 answers

Sort by: Most helpful
  1. Sam of Simple Samples 5,516 Reputation points
    2022-09-03T19:55:37.84+00:00

    I am not sure I understand what you are asking.

    In the project's properties, in Application | General, I see targets for iOS, Android and Windows with options for specifying the target framework. Is that what you are asking?


  2. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
    2022-09-08T06:14:59.557+00:00

    Hello,

    MAUI version is tied to the VS 2022 preview version right now, however, you could specify the maui version via adding the following code into your project file:

       <MauiVersion>6.0.312</MauiVersion>  
    

    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.