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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,922 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,616 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,198 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,599 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,167 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,471 Reputation points Microsoft Vendor
    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.