Want to use .net 6 in Visual Studio 2022 maui

Ertuğrul Gazi KÖKSALDI 0 Reputation points
2024-07-22T06:57:52.2066667+00:00

I learned that .net 8 is not going to be supported in IOS so I want to start using .net 6 in Visual Studio 2022 Maui. I can't use .net 6 in visual studio because it's not supported anymore. I downloaded .net 6 manually but my .net version is stuck at .net 8 and I can't change it. I can't delete .net 8 either since it's included in Maui. I tried downloading .net 6 using "Open in terminal" option after right clicking a folder, writing "dotnet workload install maui" but this still doesn't change anything. Visual Studio doesn't give me the option of choosing .net 6 and the only way I can use .net 6 is changing target framework from properties which gives errors (.net 6 is not supported) and locks up properties.

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | .NET MAUI
Developer technologies | .NET | .NET Runtime
Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2024-07-22T08:21:47.0166667+00:00

    Hello,

    Yes, .NET MAUI6 and .NET MAUI7 support have been ended. You cannot use it.

    Please start with .NET8, and it will continue to be supported until it is replaced by .NET9.

    See .NET MAUI official support policy | .NET (microsoft.com)

    Best Regards,

    Wenyan Zhang


    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.


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.