MAUI project giving platform version error

105 views Asked by At

I just updated my visual studio to the latest version, then I am getting "platform version is not present for one or more target framework" error. I didn't do anything to the project or to the pc or to the visual studio other than the update. The resources available in the internet about Maui is very less because it's a new framework, so I'm stuck in this error. Any useful answers will be appreciated.

I tried to build and rebuild the solution, uninstall and install the visual studio and dotnet 6 sdk. And also made sure that the maui framework is installed using visual studio installer.error image]

1

There are 1 answers

0
Kapusch On

For your information, .NET 6 is out of support for MAUI since 8th May 2023.

Can you give a try to the following commands and see if it solves your problem?

  1. First, manually download .NET 8 SDK
  2. Then run the following command to install maui

dotnet workload install maui

  1. Then run the following command to install workloads for iOS & Android

dotnet workload install maui-android maui-ios