Unplanned
Last Updated: 18 Nov 2020 07:13 by ADMIN
n/a
Created on: 11 Nov 2020 16:00
Category: UI for Xamarin
Type: Bug Report
2
Remove WindowsBase and PresentationCore from Telerik.UI.for.Xamarin.Documents.Flow NuGet package

if you look at the .nuspec file for the Telerik.UI.for.Xamarin.Documents.Flow package there is an entry in the 

<framework> assemblies element;

<frameworkAssembly assemblyName=”WindowsBase” targetFramework=””/ >

This is what causes NuGet to drag the WindowsBase assembly in.

 we cannot build the iOS project - we get the following error.

The type 'NotifyCollectionChangedAction' exists in both 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

We are not referencing the WindowsBase assembly directly, but on analyzing the Nuget dependencies we found the following dependency chain;

Telerik.UI.for.Xamarin (2020.3.1106.1) -> Telerik.UI.for.Xamarin.Documents.Flow (2020.3.1019) -> WindowsBase (Framework Assembly)

 it seems that WindowsBase (and PresentationCore which is also included) are not intended for Xamarin iOS or Android applications.

 

3 comments
ADMIN
Didi
Posted on: 18 Nov 2020 07:13

Hi Chris,

The workaround 2, adding the needed assemblies manually, means that you should not use Telerik NuGet packages. 

Download the Telerik_UI_for_Xamarin_[version]_[license].zip package which contains binaries, VSExtensions and examples used for manual installation. For more information check our help article: Download Product Files

The assemblies are located inside the Binaries folder. So you can use these assemblies and manually add them to the projects. 

Note that the issue with the WindowsBase and Presentation core is inside the Telerik.UI.for.Xamarin.Documents.Flow NuGet package (.nuspec file), it is not in the assemblies which are located inside the Binaries folder. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Chris
Posted on: 16 Nov 2020 15:47

Workaround #2 is a non-starter, as the required assemblies don't exist outside of WPF.

ADMIN
Didi
Posted on: 12 Nov 2020 12:57

Hi,

Until a fix for this issue is provided, you can workaround it using one of the following approaches:

1) modify the NuGet package locally and remove the WindowsBase and PresentationCore dependencies

2) manually add the required assemblies.

3) if you don't use the WordProcessing library, you can add the separate NuGet packages for the Telerik UI for Xamarin controls you are using in the application. Each control's getting started article has a section: Adding the required Telerik references:

 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.