Nuget package dependency conflict

Ramon X 21 Reputation points
2022-03-01T09:41:35.37+00:00

Hello experts,
I worte a .net 6 app which used two nuget package A and B.
Both A and B refered to another package C but with different version.
178843-1.png
Package C got a breaking update ;(
When I built it, I would received an error:
Error CS7069 Reference to type 'xxx' claims it is defined in 'Cxxx', but it could not be found

I don't know how to refer to same assembly with different version, and I just used source code (A and C) to work around it.

Any other ideas?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
0 comments No comments
{count} votes

Accepted answer
  1. Karen Payne MVP 35,036 Reputation points
    2022-03-01T10:21:11.12+00:00

    Looks like you have a cousin dependency which in your case means no way to resolve. You could contact the author of the package to see if they can assist in this matter.

    178872-f1.png


0 additional answers

Sort by: Most helpful