当我尝试在Xamarin Forms中使用XAML创建内容视图时,生成的代码会抛出以下错误:
System.ArgumentNullException: Value cannot be null. Parameter name: clrNamespace
at this.LoadFromXaml(typeof(MyXamlPage));
at InitializeComponent()
XAML:
<ContentPage
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Adapt.Presentation.XamarinForms.MyXamlPage"
Title="My Xaml Page">
<ContentPage.Content>
<Grid>
</Grid>
</ContentPage.Content>
</ContentPage>