Why .Net 8.0 does not show up as Traget Framework for a new .NET MAUI App on Mac?

dg2k 1,386 Reputation points
2023-03-25T13:20:50.44+00:00

I have installed both Visual Studio 2022 for Mac v17.6 Preview and .NET 8.0, all successfully installed.

Platform: MacBook Pro, x64 (2.2 GHz, 6-core Intel Core i7, 16GB/256GB), macOS Ventura Version 13.1

I've also successfully run dotnet workload install maui terminal command under elevated permissions to update all the workloads.

Following what I did on Windows, I expected .NET 8.0 to show up when creating .NET MAUI App, but only .NET 6.0 and .NET 7.0 show up as target frameworks.

Is this the expected behaviour for macOS platform?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,372 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
0 comments No comments
{count} vote

Accepted answer
  1. Erkan Sahin 830 Reputation points
    2023-03-25T13:27:56.2666667+00:00

    Yes, currently .NET 8.0 is not yet supported in Visual Studio for Mac. The latest version that is currently supported is .NET 7.0.

    However, you can still use .NET 8.0 by using the .NET MAUI CLI tools instead of Visual Studio for Mac. You can install the CLI tools by running the following command in your terminal:

    
    dotnet tool install -g Redth.Net.Maui.Cli
    

    After installing the CLI tools, you can create a new .NET MAUI project using the following command:

    
    maui new MyApp --template-blank
    

    This will create a new .NET MAUI project using .NET 8.0.

    I hope this help :-) Please mark my answer if it does.

    0 comments No comments

0 additional answers

Sort by: Most helpful