В сборке Debug данные через привязку binding работают нормально. Но когда начинаю сборку в Release то на некоторых страницах не работают данные через привязки.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AutoShopMAUI.Views.CategoriesProductList"
xmlns:viewmodel ="clr-namespace:AutoShopMAUI.ViewModels.Product"
Title="Товары">
<Grid>
<CollectionView x:Name="categoryProductList" x:DataType="viewmodel:ProductViewModel" ItemsSource="{Binding productsCollection}" IsVisible="{Binding IsReady}" >
<CollectionView.ItemsLayout>
<LinearItemsLayout Orientation="Vertical" ItemSpacing="15"/>
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate >
<Frame Margin="3">
<VerticalStackLayout>
<Image Source="" HeightRequest="55" MinimumHeightRequest="55" />
<Label Text="{Binding Name}" Margin="2,0,0,0"/>
<HorizontalStackLayout>
<Label Text="Цена:" />
<Label Text="{Binding SalePrices[0].Value}" TextColor="Black"/>
<Label Text="Р" />
</HorizontalStackLayout>
</VerticalStackLayout>
</Frame>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<ActivityIndicator IsVisible="{Binding indicatorIsRunning}" IsRunning="{Binding indicatorIsRunning}" />
</Grid>
</ContentPage>
Так выглядит collection view в release:
Так в Debug:
Через logcat данные возвращаются и даже если присвоить в collectionviev itemsSource observable collection то все равно текст пустой.