我来自的NuGet安装了Xamarin窗体旋转视图旋转视图Xamarin形式给予2个错误
但是我得到2个错误:
1)无法解析组件:“Xamarin.Forms.CarouselView,版本= 0.0.0.0,Culture = neutral,PublicKeyToken = null'
2)“ResolveLibraryProjectImports”任务意外失败。 System.IO.FileNotFoundException:无法加载程序集'MashamApp,Version = 0.0.0.0,Culture = neutral,PublicKeyToken ='。也许它不适用于Android个人资料的Mono中?
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
x:Class="MashamApp.MainPage" BackgroundColor="#ff1b74bb">
<Grid x:Name="gMain" BackgroundColor="#ffebf6ff">
<Grid.RowDefinitions>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Label x:Name="lblName" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" FontSize="Medium" TextColor="White"></Label>
</Grid>
<Grid Grid.Row="1">
<control:CarouselView ItemsSource="{Binding MyDataSource}">
<control:CarouselView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding LabelText}" />
</DataTemplate>
</control:CarouselView.ItemTemplate>
</control:CarouselView>
</Grid>
你所有项目中安装NuGet包,即在共享项目和Android项目? –