core icon indicating copy to clipboard operation
core copied to clipboard

Error: Multiple assemblies with equivalent identity have been imported.

Open mikemuggli opened this issue 8 years ago • 2 comments

This is almost a duplicate of https://github.com/dotnet/core/issues/588. However, my issues surfaces on my local developer environment. I have VS 2015 and a simple web project that is targeting the .Net 4.6.2 framework.

When I add a dependency from Nuget for Microsoft.Extensions.DependencyInjection, which in turn has a dependency on System.Runtime.Extensions.dll and try to build the project, I get the following error.

Error CS1703 Multiple assemblies with equivalent identity have been imported: 'c:\users\mmuggli\documents\visual studio 2015\Projects\packages\System.Runtime.Extensions.4.1.0\lib\net462\System.Runtime.Extensions.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.2\Facades\System.Runtime.Extensions.dll'. Remove one of the duplicate references. WebApplication3 c:\users\mmuggli\documents\visual studio 2015\Projects\WebApplication3\CSC 1 Active

I believe that my instance of Visual Studio 2015 is using the MSBuild Tools version 14.0

mikemuggli avatar Feb 01 '18 21:02 mikemuggli

I had this too. The workaround from https://github.com/dotnet/sdk/issues/1539 worked for me.

jaundice avatar Mar 07 '18 11:03 jaundice

I'm going to close this here and let it be tracked by dotnet/sdk#1539

Petermarcu avatar Jul 13 '18 16:07 Petermarcu