The DependentProjectsFinder.GetAssemblyReferenceType method obtains an assembly or module symbol here:
|
if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol symbol) |
This symbol is passed to a predicate, where the only actual use of this predicate is the following:
|
a => a.Name == assemblyName ? true : (bool?)null, |
The HasReferenceToAssembly method should be updated to avoid requiring symbol binding to check the name of an assembly.
🔗 Originally discovered while investigating internal issue DevDiv 1006914.
The
DependentProjectsFinder.GetAssemblyReferenceTypemethod obtains an assembly or module symbol here:roslyn/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentProjectsFinder.cs
Line 458 in e056778
This symbol is passed to a predicate, where the only actual use of this predicate is the following:
roslyn/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentProjectsFinder.cs
Line 419 in e056778
The
HasReferenceToAssemblymethod should be updated to avoid requiring symbol binding to check the name of an assembly.🔗 Originally discovered while investigating internal issue DevDiv 1006914.