Transitive references are not considered by Roslyns Semantic model? #3249
Labels
Area-Compilers
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Question
Milestone
Assume the following project layout:
ProjectA declares a custom attribute
ProjectB references ProjectA and uses the custom attribute on ClassA
ProjectC references ProjectB and uses ClassA in ClassB
Now we want get the AttributeData (compiled version of the custom attribute) by using the semantic model of ProjectC, however we only get an ErrorType as long as ProjectC does not reference ProjectA (the one that contains the custom attribute).
Is this a Roslyn bug? Or is there a way to retrieve the AttributeData without adding a reference to ProjectA.
Here is the source code to reproduce the issue
The text was updated successfully, but these errors were encountered: