我來自的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項目? –