Can it be solved that it is always the latest MAUI version I use it?
VS version: 17.3.4
MAUI: 6.0.536 <- current use my project
Latest Maui: 6.0.540
MAUI version is tied to the VS 2022 preview version currently.
In order to use the latest MAUI, you need to upgrade you VS.
In addition, there is a not recommended way to use specific MAUI version:
Add it into your project file <MauiVersion>6.0.540</MauiVersion>
It will be deprecated in a future release, please refer to this issue: The "Value cannot be null" errors are shown on an attempt to build a project with MauiVersion set to a previous value #4812.
Therefore, the best way for using latest MAUI is the first way.
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.
4 people are following this question.