Error on rebuilding the project after updating syncfusion nuget - c#

Currently I am using
Xamarin forms 3.6.0.539721
Syncfusion nuget Version 17.1.0.53
now i am trying to update syncfusion nuget version to 18.2.0.44
Steps:
Installed Syncfusion Licensing from 17.1.0.53 to 18.2.0.44
then I install syncfusion.xamarin.core from 17.1.0.53 to 18.2.0.44
then I install syncfusion.xamarin.sfnumericupdown from 17.1.0.53 to 18.2.0.44
and after install and rebuilding project it gives me below errors.
Error The Java type `mono.android.support.v4.widget.DrawerLayout_DrawerListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.content.Loader_OnLoadCanceledListenerImplementor` generated by: Android.Support.V4.Content.Loader+IOnLoadCanceledListenerImplementor, Xamarin.Android.Support.Core.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.view.ViewPager_OnPageChangeListenerImplementor` generated by: Android.Support.V4.View.ViewPager+IOnPageChangeListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.view.AsyncLayoutInflater_OnInflateFinishedListenerImplementor` generated by: Android.Support.V4.View.AsyncLayoutInflater+IOnInflateFinishedListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.content.Loader_OnLoadCompleteListenerImplementor` generated by: Android.Support.V4.Content.Loader+IOnLoadCompleteListenerImplementor, Xamarin.Android.Support.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.view.ViewPager_OnAdapterChangeListenerImplementor` generated by: Android.Support.V4.View.ViewPager+IOnAdapterChangeListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.view.ViewPager_OnPageChangeListenerImplementor` generated by: Android.Support.V4.View.ViewPager+IOnPageChangeListenerImplementor, Xamarin.Android.Support.ViewPager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.view.ViewPager_OnPageChangeListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.view.AsyncLayoutInflater_OnInflateFinishedListenerImplementor` generated by: Android.Support.V4.View.AsyncLayoutInflater+IOnInflateFinishedListenerImplementor, Xamarin.Android.Support.AsyncLayoutInflater, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.widget.DrawerLayout_DrawerListenerImplementor` generated by: Android.Support.V4.Widget.DrawerLayout+IDrawerListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.widget.SlidingPaneLayout_PanelSlideListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error The Java type `mono.android.support.v4.content.Loader_OnLoadCanceledListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.widget.DrawerLayout_DrawerListenerImplementor` generated by: Android.Support.V4.Widget.DrawerLayout+IDrawerListenerImplementor, Xamarin.Android.Support.DrawerLayout, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.content.Loader_OnLoadCompleteListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.widget.SwipeRefreshLayout_OnRefreshListenerImplementor` generated by: Android.Support.V4.Widget.SwipeRefreshLayout+IOnRefreshListenerImplementor, Xamarin.Android.Support.SwipeRefreshLayout, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.view.ViewPager_OnAdapterChangeListenerImplementor` generated by: Android.Support.V4.View.ViewPager+IOnAdapterChangeListenerImplementor, Xamarin.Android.Support.ViewPager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.widget.SlidingPaneLayout_PanelSlideListenerImplementor` generated by: Android.Support.V4.Widget.SlidingPaneLayout+IPanelSlideListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.content.Loader_OnLoadCompleteListenerImplementor` generated by: Android.Support.V4.Content.Loader+IOnLoadCompleteListenerImplementor, Xamarin.Android.Support.Core.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error `mono.android.support.v4.widget.SwipeRefreshLayout_OnRefreshListenerImplementor` generated by: Android.Support.V4.Widget.SwipeRefreshLayout+IOnRefreshListenerImplementor, Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.widget.SwipeRefreshLayout_OnRefreshListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.widget.SlidingPaneLayout_PanelSlideListenerImplementor` generated by: Android.Support.V4.Widget.SlidingPaneLayout+IPanelSlideListenerImplementor, Xamarin.Android.Support.SlidingPaneLayout, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.view.AsyncLayoutInflater_OnInflateFinishedListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
Error `mono.android.support.v4.content.Loader_OnLoadCanceledListenerImplementor` generated by: Android.Support.V4.Content.Loader+IOnLoadCanceledListenerImplementor, Xamarin.Android.Support.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null HXSV1.Android
Error The Java type `mono.android.support.v4.view.ViewPager_OnAdapterChangeListenerImplementor` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted. HXSV1.Android
I want to update sfnumericupdown nuget because it have issue in step value up and down in Ukraine Language.
step value is 0.1 and Value is 46.2, now when i tap numeric up icon then value becomes 55/255/555, it means value not changing as per step value.
any help?
thank you.

Greetings from Syncfusion.
We have checked the reported issue with the provided steps in SfNumericUpDown control with a simple sample and control is working fine from our side. Could you please confirm whether all projects have the same Xamarin Forms version. Please have the sample and video for reference from the below link.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Updown-1262080342
Video link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/UpdownVideo364340833
Screenshot:
UpDown image
Please check with the sample and if the issue still persists please modify the same with the issue reproducing steps and also mention in which scenario you could reproduce the issue which will be helpful for us to analyse further and provide an appropriate solution.
Regards,
Sridevi S.

Related

System.IO.Compression Reference issue

I am working on .NET framework 4.6 Web API application. My app is working on my machine and I was able to build it in my local but when I push it to our Azure Dev OPS CI, I got this build error.
Error CS0433: The type 'ZipArchive' exists in both 'System.IO.Compression, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
: Error CS0433: The type 'ZipArchiveMode' exists in both 'System.IO.Compression, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Process 'msbuild.exe' exited with code '1'.

Why does Bridge.net not compile HashSet<T> or Stack<T>

I am using Bridge.net v17.10.1, and according to the documentation they are implemented in Bridge.Core.
HashSet<T> varName;
Stack<T> varName2;
Produces the following errors:
Error CS0433 The type 'HashSet<T>' exists in both 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'Bridge, Version=17.6.0.0, Culture=neutral, PublicKeyToken=null'
Error CS0433 The type 'Stack<T>' exists in both 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'Bridge, Version=17.6.0.0, Culture=neutral, PublicKeyToken=null'
Probably something super simple, but my Bridge.Net knowledge is limited and I have not been able to figure it out.
This is a known issue, the answer is described here: https://forums.bridge.net/forum/community/help/2902-c-compile-error-the-type-stopwatch-exists-in-both-system-and-bridge
Yes, you have to remove System reference from your csproj file
Also I can suggest to add the following reference to prevent adding System reference by Visual Studio
<Reference Include="System" Condition="False" />

Could not load type 'System.ComponentModel.DataAnnotations.AssociatedMetadataTypeTypeDescriptionProvider' from assembly

I am getting this error in .net core installed annotation 4.0 version But It is Not Working How can I Solve This error.
Could not load type
'System.ComponentModel.DataAnnotations.AssociatedMetadataTypeTypeDescriptionProvider' from assembly 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
thank you.

Warning: Only got partial types from assembly: Microsoft.Azure.WebJobs.Extensions.Storage

I've got a simple .NET V3 WebJob with a timer trigger up and running in a .NET website as outlined in this answer: Scheduled .NET WebJob V3 example
However, in the output, I get this warning:
warn: Host.Startup[0]
Warning: Only got partial types from assembly: Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
The following loader failures occured when trying to load the assembly:
- Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
- Method 'Commit' in type 'Microsoft.Azure.WebJobs.Host.Blobs.Bindings.DelegatingCloudBlobStream' from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
- Method 'Commit' in type 'Microsoft.Azure.WebJobs.Host.Blobs.Bindings.DelegatingCloudBlobStream' from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
- Method 'Commit' in type 'Microsoft.Azure.WebJobs.Host.Blobs.Bindings.DelegatingCloudBlobStream' from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
- Method 'Commit' in type 'Microsoft.Azure.WebJobs.Host.Blobs.Bindings.DelegatingCloudBlobStream' from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
- Could not load type 'Microsoft.WindowsAzure.Storage.Table.TableQuerySegment' from assembly 'Microsoft.WindowsAzure.Storage, Version=9.3.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
This can occur if the assemblies listed above are missing, outdated or mismatched.
Exception message: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Microsoft.Azure.WebJobs.Host.Indexers.DefaultTypeLocator.FindTypes(Assembly assembly, IEnumerable`1 extensionAssemblies) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\DefaultTypeLocator.cs:line 115
It's an open issue on GitHub (https://github.com/Azure/azure-webjobs-sdk/issues/2060). Does anyone have a fix?
More importantly, does it affect functionality in any way? The GitHub issue OP said no, but it would be good to have someone confirm this.
Install package "Microsoft.Azure.WebJobs.Host.Storage" Version="4.1.0" to fix this error.
Also, to avoid any confusion, before I fixed this, the error message in the original question, due to package updates, had become the following:
warn: Host.Startup[0]
Warning: Only got partial types from assembly: Microsoft.Azure.WebJobs.Host.Storage, Version=4.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
The following loader failures occured when trying to load the assembly:
- Method 'LogFunctionStarted' in type 'WebJobs.Host.Storage.Logging.PersistentQueueLogger' from assembly 'Microsoft.Azure.WebJobs.Host.Storage, Version=4.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
This can occur if the assemblies listed above are missing, outdated or mismatched.
Exception message: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.Azure.WebJobs.Host.Indexers.DefaultTypeLocator.FindTypes(Assembly assembly, IEnumerable`1 extensionAssemblies) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\DefaultTypeLocator.cs:line 115

Cannot convert from type1 to type1 in netstandard error

I've been lured into creating NetStandard libraries in 2017RC. I have come across 2 bizarre errors
Error CS1503 Argument 1: cannot convert from 'UtilityLibrary.CountryHelpers.Country.CountryCode
[...UtilityLibrary\Country\Country.cs(10)]' to
'UtilityLibrary.CountryHelpers.Country.CountryCode [Common,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]'
Error CS0433 The type 'Regex' exists in both 'System.Text.RegularExpressions, Version=4.0.10.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' and 'System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089'
After doing some searching, these are the things I've tried:
a clean of the entire solution and build
removing each project and re-adding them, setting the references after readding them
Why am I seeing the regex error? I literally just created a few libraries in one sitting!

Categories