MAUI Project Issues

Trevoir Williams 1 Reputation point
2022-05-30T00:07:20.157+00:00

I have added the MAUI workload in Visual Studio 2022 v17.3.0 Preview 1.1 and I have the following set of errors after creating my project.

206489-image.png

I have done the maui-check and it always ends with the following:
206490-image.png

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

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-30T09:53:31.07+00:00

    Hello,​

    Based on your screenshot, your project lack of net6.0-android , net6.0-ios, net6.0-maccatalyst dependencies.

    Firstly, please open your VS installer, choose the VS 2022 Preview, click Modify, install the .NET Multi-platform App UI development workload like following document.
    https://learn.microsoft.com/en-us/dotnet/maui/get-started/first-app?pivots=devices-android#get-started-with-visual-studio-2022-173-preview

    It is recommended to install it from VS installer. However, if you want to install it with command line. Please close your VS. Delete all of files from C:\Program Files\dotnet\metadata\workloads. Then Run dotnet workload install maui in command line.

    Best Regards,

    Leon Lu


    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

Your answer

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