Skip to content

[Android][iOS] Error Multiple assemblies with equivalent identity have been imported #3

@ledangvu

Description

@ledangvu

Hi, I got an error while I was compiling the Andorid & iOS project where as the UWP project has worked well with this library. THe errors is described as below:

I found out that, If i removed the PackageReference NuGet.Build.Packaging in JWTDecoder project , it would work on Android, & iOS

Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Xml.XmlSerializer.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Xml.XmlSerializer.dll'. Remove one of the duplicate references. Error CS0731: The type forwarder for type 'System.CodeDom.Compiler.GeneratedCodeAttribute' in assembly 'netstandard' causes a cycle (18, 36) Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\mscorlib.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Collections.Concurrent.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Collections.Concurrent.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Collections.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Collections.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.ComponentModel.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ComponentModel.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.ComponentModel.EventBasedAsync.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ComponentModel.EventBasedAsync.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Diagnostics.Contracts.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Diagnostics.Contracts.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Diagnostics.Debug.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Diagnostics.Debug.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Diagnostics.Tools.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Diagnostics.Tools.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Dynamic.Runtime.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Dynamic.Runtime.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Globalization.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Globalization.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Linq.Parallel.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Linq.Parallel.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Linq.Queryable.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Linq.Queryable.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Net.Primitives.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Net.Primitives.dll'. Remove one of the duplicate references. Error CS1069: The type name 'GeneratedCodeAttributeAttribute' could not be found in the namespace 'System.CodeDom.Compiler'. This type has been forwarded to assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Consider adding a reference to that assembly. (18, 36) Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Net.Requests.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Net.Requests.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Reflection.Extensions.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Reflection.Extensions.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Reflection.Primitives.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Reflection.Primitives.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Resources.ResourceManager.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Resources.ResourceManager.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Runtime.Handles.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.Handles.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Runtime.Numerics.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.Numerics.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Runtime.Serialization.Json.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.Serialization.Json.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Security.Principal.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Security.Principal.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Text.Encoding.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Text.Encoding.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Text.Encoding.Extensions.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Text.Encoding.Extensions.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Threading.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Threading.Tasks.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.Tasks.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Threading.Tasks.Parallel.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.Tasks.Parallel.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Threading.Timer.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.Timer.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.Xml.XDocument.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Xml.XDocument.dll'. Remove one of the duplicate references. Error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\ledan\.nuget\packages\jwtdecoder\0.9.2\lib\netstandard2.0\System.ObjectModel.dll' and 'D:\ProgramFiles\Microsoft Visual Studio\2022\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ObjectModel.dll'. Remove one of the duplicate references. Error CS1069: The type name 'GeneratedCodeAttribute' could not be found in the namespace 'System.CodeDom.Compiler'. This type has been forwarded to assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Consider adding a reference to that assembly. (18, 36)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions