core icon indicating copy to clipboard operation
core copied to clipboard

DevOps build Error CS1703: Multiple assemblies with equivalent identity have been imported: System.Runtime.Serialization.Primitives.dll

Open CalvinFengDatacom opened this issue 7 years ago • 1 comments

Error CS1703: Multiple assemblies with equivalent identity have been imported: System.Runtime.Serialization.Primitives.dll

I have a C# .Net project was running on .Net framework 4.6, but as required, we upgraded to 4.6.1. Then I can build successfully locally, but once I deploy my changes to VSTS, I got this issue from the build of DevOps. I'm using the latest version of VS, 2017 15.9.7

Here is the detail of the error:

Error CS1703: Multiple assemblies with equivalent identity have been imported: 'D:\a\1\s{ProjectName}\packages\System.Runtime.Serialization.Primitives.4.3.0\lib\net46\System.Runtime.Serialization.Primitives.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.1\Facades\System.Runtime.Serialization.Primitives.dll'. Remove one of the duplicate references.

CalvinFengDatacom avatar Mar 01 '19 02:03 CalvinFengDatacom

Closed as it related to .Net Framework not .Net core

CalvinFengDatacom avatar Mar 01 '19 02:03 CalvinFengDatacom