Net Maui Vs 2022 error how to fix ?

Sami 721 Reputation points
2023-08-03T01:20:34.2733333+00:00

I have this error can t solve any idea ? thanks..

Severity Code Description Project File Line Suppression State

Error MAUIG1001 An error occured while parsing Xaml: Root element is missing.. xxx(net7.0-android) C:\Users\sso\OneDrive\Documents\Visual Studio 2022\Projects\Mobile\xxx\xxx.csproj 1 Active

Severity Code Description Project File Line Suppression State

Error MAUIG1001 An error occured while parsing Xaml: Root element is missing.. xxx(net7.0-ios) C:\Users\sso\OneDrive\Documents\Visual Studio 2022\Projects\Mobile\xxxx\xxx.csproj 1 Active

Severity Code Description Project File Line Suppression State

Error MAUIG1001 An error occured while parsing Xaml: Root element is missing.. xxx(net7.0-maccatalyst) C:\Users\sso\OneDrive\Documents\Visual Studio 2022\Projects\Mobile\xxx\xxx.csproj 1 Active

Severity Code Description Project File Line Suppression State

Error MAUIG1001 An error occured while parsing Xaml: Root element is missing.. xxx(net7.0-windows10.0.19041.0) C:\Users\sso\OneDrive\Documents\Visual Studio 2022\Projects\Mobile\xxx\xxx.csproj 1 Active

Severity Code Description Project File Line Suppression State

Error MAUIG1001 An error occured while parsing Xaml: Root element is missing.. xxx C:\Users\sso\OneDrive\Documents\Visual Studio 2022\Projects\Mobile\xxx\CSC 1

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

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 63,916 Reputation points Microsoft Vendor
    2023-08-04T07:07:19.23+00:00

    I found a similar thread about this issue, this error is relate the xaml files, we have to check all of them one by one. if xaml files have element is missing or commented. If you could share a demo that could reproduce this issue, it is better.


0 additional answers

Sort by: Most helpful