We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Observable Collection error after upgrade


After the upgrad from to I've got this error message:

Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão
Erro CS0012 O tipo "ObservableCollection<>" está definido em um assembly que não é referenciado. Você deve adicionar uma referência ao assembly "netstandard, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51". seller C:\dev\vsts.napisapp\Pages\OrderItemListPage.xaml.cs 44 Ativo

Please see the code bellow, I need some help.

                SfLinearGauge linearGauge = new SfLinearGauge();
                LinearScale linearScale = new LinearScale();
                linearScale.ScaleBarColor = Color.FromHex("#e0e0e0");
                linearScale.LabelColor = Color.FromHex("#424242");
                linearGauge.Scales.Add(linearScale);// error in this line

1 Reply

BK Bharathiraja K Syncfusion Team September 26, 2019 05:22 AM

Hi Leo, 
Greetings from Syncfusion. We have upgraded our source project to .NetStandard 2.0 from the release version So we suggest you to upgrade your application project to .NetStandard 2.0 to avoid this issue. 

Live Chat Icon For mobile
Up arrow icon