Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Issue with using xaml in a shared Xamarin.Forms project

$
0
0

I have a simple app built with Xamarin.Forms. I chose to use the shared project approach instead of PCL. I created a view in the shared project using code (no xaml) and it worked just fine. I then attempted to create a view using xaml, but it fails to recognize the containing type ContentPage among other things.

Keep in mind this xaml page is exactly as is when created using the Add New Item -> Forms Xaml Page

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                       xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                       x:Class="MyTestApp.Views.HomeView">
</ContentPage>

Errors:

The name "ContentPage" does not exist in the namespace "http://xamarin.com/schemas/2014/forms".
The property "Class" does not exist in the "http://schemas.microsoft.com/winfx/2009/xaml" namespace.
The type 'ContentPage' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Greatly appreciate any help.

Thanks!
Michael


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>