When I am trying to run application on Xamarin on visual studio, I am getting error as mentioned below and not able to run the application on device or emulator:
<
I am getting this error with Xamarin.Mac in Visual Studio for Mac. I unloded the Xamarin.Mac Project. Than remove it from solution. Finally delete the xamarin.Mac folder from the solution folder. Atlast deleted the packages folder from the solution folder. Remove all nuget packages from xamarin forms project.
Now I again add the nuget packages to xamarin forms project. Added Xamarin.Mac project to the solution and make necessary modifications. This results in a successful build. Though my problem was with xamarin.mac this process may solve problem with other projects also.
If you have XML errors in your XAML files, this may happen too. Example:
<Label Text="<- go back" />
(You cannot use the character < there, use < instead.)
Or two attributes with the same name:
<Label Text="someText" HorizontalOptions="Center" Text="someText" />