How to fix “No way to resolve conflict between” error?

后端 未结 4 607
-上瘾入骨i
-上瘾入骨i 2021-02-06 21:35

Recently added log4net.dll to our data object. Our data object builds perfectly but when you try to build anything that references our data object you get the following error: <

4条回答
  •  野性不改
    2021-02-06 21:57

    Cause:

    You have two different assemblies with the same file name. The compiler does not know which one to choose to copy to the output directory so it gives that No way to resolve conflict between... error.

    In my case, they were completely different assemblies that happened to have the same file names.

    In your case, you have two different versions of the same assembly (log4net)

    solution:

    In my case, the solution was to simply rename one of the dll files.

    In your case, the solution is to find out where the older assembly was referenced and correct it to reference the newer one.

提交回复
热议问题