Xamarin.Forms + Syncfusion Errors

Xamarin.Forms + Syncfusion

The following are the Errors encountered when working with Xamarin.Forms and Syncfusion  controls.

🔘 Error Cannot resolve Assembly or Windows Metadata file ‘Syncfusion.SfGrid.UWP.dll’ testSyncfusion.UWP D:\4_Prj\Training\testSyncfusion\testSyncfusion\testSyncfusion.UWP\testSyncfusion.UWP.csproj
Error Type universe cannot resolve assembly: Syncfusion.SfGrid.UWP, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89. testSyncfusion.UWP C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets 352

Solution:

Remove the following references from the .UWP project:
Syncfusion.SfGridConverter.UWP
Syncfusion.SfGridConverter.XForms
The error in my thinking, is because these are converters from an old library used by Syncfusion for a grid called “SfGrid”.

🔘 Error Type universe cannot resolve assembly: Syncfusion.GridCommon.Portable, Version=14.1451.0.46, Culture=neutral, PublicKeyToken=null. testSyncfusion.UWP C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets 352

🔘 Error Type universe cannot resolve assembly: Syncfusion.GridCommon.Portable, Version=14.1451.0.46, Culture=neutral, PublicKeyToken=null. testSyncfusion.UWP C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets 352
Check this url:
https://www.syncfusion.com/forums/121043/failed-to-resolve-assembly-39syncfusion-data-portable-version-13-3451-0-7-culture-neutral

Solution:

This error will occur in the .UWP project, so u need to add the reference for the PCL dll”Syncfusion.GridCommon.Portable.dll”, which is in pcl/Syncfusion.GridCommon.Portable.dll

also see: http://help.syncfusion.com/xamarin/sfdatagrid/getting-started

and also see: https://components.xamarin.com/gettingstarted/syncfusionessentialstudio

We have analyzed your query and the screenshots. The compile error occurs as the Syncfusion.Data.Portable dll is not referred in the iOS renderer project. In order to resolve the compile error, you need to add the Syncfusion.SfDataGrid.XForms.iOS dll to your renderer project and Syncfusion.Data.Portable, Syncfusion.GridCommon.Portable, Syncfusion.SfDataGrid.XForms.dll dll’s to your pcl project.
The Syncfusion.SfDataGrid.XForms.iOS dll internally references the three dlls that are added as reference to the pcl project and hence should resolve your error. In case if the error continue to persist, add the Syncfusion.Data.Portable, Syncfusion.GridCommon.Portable and Syncfusion.SfDataGrid.XForms dll’s along with the Syncfusion.SfDataGrid.XForms.iOS dll in the iOS renderer project in your sample.
so check the references added:

 

 

Related Errors:

https://readerman1.wordpress.com/2016/05/11/xamarin-forms-errors

 

 

 

About Reader Man حسين ناجي الصفافير

حسين ناجي الصفافير Hussain Naji Al-Safafeer Info: https://readerman1.wordpress.com/aboutme
This entry was posted in Bugs and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s