“Assembly Same Simple Name already been imported” error

烂漫一生 提交于 2019-11-30 12:01:09

You can see the simple name by opening project properties and selecting Assembly Information:

To sign the assembly you need to select Signing tab and create or select signing key:

You have two assemblies with the same name (not file name, assembly name). There are two solutions to this:

  1. Rename one of the assemblies from the project's properties and recompile.
  2. Set up Strong-Name Signing on the assembly to allow two separate versions of the same assembly to coexist.

If you are working with the new .csproj version, you may encounter this problem after you add a reference to another solution project, if the reference already exists as an Assembly Dependency (this reference may have been added automatically by Visual Studio).

On Solution Explorer, expand the conflicting project, navigate to Dependencies->Assemblies and check that there is not an existing reference to the assembly that is raising the conflict. If it exists, just delete it and the conflict will be resolved.

I too seems this problem in my project. I had changed my dll path to another folder, and changed the reference path too for the same(dependency Layers). It will work. No duplication occurs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!