essential-ui-kit-for-xamarin.forms icon indicating copy to clipboard operation
essential-ui-kit-for-xamarin.forms copied to clipboard

Error Using Syncfusion Plugin with Visual Studio for Mac 2019

Open bbqchickenrobot opened this issue 4 years ago • 2 comments

Hi I am using the VS for Mac 2019 version (latest as of this post) with the Syncfusion plugin however it produces a non-buildable solution. The issue seems to be w/ the UI Kit for Xamarin and not the plugin. I am using all of the latest Nuget packages for both Xamarin Forms and Syncfusion UI Kit. I have attached a screenshot for your review.

There error seems to mention that it's having trouble finding INotifyPropertyChanged:

../CheckoutPageViewModel.cs(22,22): Error CS1061: 'CheckoutPageViewModel' does not contain a definition for 'NotifyPropertyChanged' and no accessible extension method 'NotifyPropertyChanged' accepting a first argument of type 'CheckoutPageViewModel' could be found (are you missing a using directive or an assembly reference?) (CS1061)

Screen Shot 2021-07-01 at 6 16 20 PM Screen Shot 2021-07-01 at 6 16 36 PM

bbqchickenrobot avatar Jul 02 '21 01:07 bbqchickenrobot

Easy enough to figure out - Change the OnPropertyChanged to NotifyPropertyChagned which what the UI Kit page models are requesting.

bbqchickenrobot avatar Jul 02 '21 02:07 bbqchickenrobot

Hi @bbqchickenrobot,

Greetings from Syncfusion.

We have analyzed the reported problem and we would like to let you know that the specified file [BaseViewModel.cs] is already in your application with the same name. And the UI Kit is also having the file in same name [BaseViewModel.cs]. Hence, the UI Kit extension will ignore updating that file in your project to avoid conflicts.

To resolve this, please copy the content from UI Kit BaseViewModel.cs and paste it in your application BaseViewModel.cs file along with the existing content.

Please find the github source file in the below

https://github.com/syncfusion/essential-ui-kit-for-xamarin.forms/blob/master/EssentialUIKit/ViewModels/Transaction/CheckoutPageViewModel.cs

https://github.com/syncfusion/essential-ui-kit-for-xamarin.forms/blob/master/EssentialUIKit/ViewModels/BaseViewModel.cs

Also, we have attached the complete sample for your reference. Please find the sample from the below link.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/CheckoutPageTemplate-161092761

For more information, please refer the below UG link

https://help.syncfusion.com/xamarin/uikit/gettingstarted

Regards, Yuvaraj

YuvarajPalanisamy avatar Jul 08 '21 05:07 YuvarajPalanisamy