Skip to content

Duplicate symbols for the same types across a solution #69751

Answered by jasonmalinowski
ygra asked this question in Q&A
Discussion options

You must be logged in to vote

There is never a guarantee that symbols have the same object identity across projects due to multi-targeting concerns, like where you have some projects targeting different frameworks. This is expected, since from the perspective of a consuming project, the other assemblies being referenced can have type forwards or different members. For example, consider if a type in A inherits from a framework type, and B depends on a newer version of the framework that has additional members, from the perspective of project B, your has additional members which aren't visible if you viewed that same type from project A. So the "base types" are different.

If you look under a debugger at the concrete typ…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ygra
Comment options

Answer selected by ygra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants