Thursday, March 30, 2017

The name "ContentPage" does not exist in the namespace "".

Most likely, the reason why you see those errors is that you are using the default XAML editor.
To fix this error try following:
1- Close all open documents.
2- From solution explorer, Right click on the *.XAML file you want to open.
3- Click on "Open With".
4- Click on "XML Text Editor".
5- Click on "Set as default" if you like.
Now you will be editing the file as normal XML file and errors should disappear.

No comments:

Post a Comment

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...