Changing App to C# from XAML causes compilation errors : MAUIG1001 #262
Replies: 1 comment
-
Closing this as now resolved. I couldn't get it working however, I cloned the code on another machine and that seems to have compiled correctly. So my guess is something must have gone wrong with the current state of it locally. Had to delete the local repo and re-clone the new changes to get it working on earlier machine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple app which I was trying to convert to C# based instead of xaml based. I have removed almost all of the items successfully with one very simple view, which renders perfectly.
However as soon as I replaced AppShell and App files from XAML to C#, it starts giving me compilation error
MAUIG1001: An error occured while parsing Xaml: Root element is missing..
I have already tried deleting bin and obj folders as well as .user file. I have tried to follow the structure of Sample project and at least to me it seems to be fairly similar, however I keep getting this error. Any idea/suggestions on how to resolve this? Has anyone else faced this issue?
I am working on .net7 on windows app, though compilation error seems to suggest every other target framework is failing.
Beta Was this translation helpful? Give feedback.
All reactions