Error running iOS MAUI .NET 8.0

Huynh Than 65 Reputation points
2024-02-27T14:43:23.51+00:00

Hi, you advised that I should create a new thread for this issue. project /Users/agro-rodney/Desktop/THAN/Agronomix/GenovixApp/GenovixApp.csproj /usr/local/share/dotnet/sdk/7.0.313/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5) : error NETSDK1139: The target platform identifier android was not recognized. Unable to create package spec for project. '/Users/agro-rodney/Desktop/THAN/Agronomix/GenovixApp/GenovixApp.csproj' I tried this work-around and didn't work out either https://github.com/dotnet/maui/wiki/.NET-7-and-.NET-MAUI The current installed sdk version is 8.0.101, so I modified the .json file accordingly using the approach above. Updated: From your last comment User's image

Do you mean that I should set the android version accordingly to the sdk/7.0.313 as the error shows above ? My project is running .NET 8.0.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,853 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,146 Reputation points Microsoft Vendor
    2024-03-01T02:35:49.15+00:00

    Hello,

    I'm glad that you can run the app through VS for Mac by enabling the Preview .NET 8.0 in the preferences menu. Thanks for your @ Huynh Than sharing.

    You could also download the .NET 8 installer, and then install .NET MAUI from the command line: dotnet workload install maui. See Get started today section in Announcing .NET MAUI in .NET 8 - .NET Blog

    (Note: Visual Studio for Mac will be retired on August 31, 2024. The Visual Studio for Mac Preview Channel is no longer being updated and there will be no further builds.)

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful