So I use the Xamarin Cross-Platform application template. I want to add LoginPage.xaml
view to my project. So I choose add -> new item -> contentpage
.
There is always error:
The project system has encountered an error:
Did not find new element in the hierarchy for item "Views\LoginPage.xaml". The item would have been added with type "Page". The project item schema service knows about this item type. The item does exist in the project file.
After I close the error. There is another error:
Microsoft Visual Studio
Exception of type "System.Exception" was thrown.
Then what happenend next is the "LoginPage.xaml" file is created but not included in the project (it is hidden). I cannot include it in my project because it keeps refusing. There is no xaml.cs file created.
How can I fix this?