c# - Nonexistent ambiguous reference -
in visual studio 2010 project, had 2 identically named classes in 2 different namespaces both commonly included in viewmodels throughout application. 1 such class has since been deprecated , removed, i'm getting ambiguous reference error when directly referring remaining class, though old class no longer exists.
we have this:
using ournamespace.ui.common; using ournamespace.somewhereelse; // *snip* someclass.somemethod();
once upon time, both of above namespaces had someclass, deleted 1 in ournamespace.ui.common. however, when building, following error:
'someclass' ambiguous reference between 'ournamespace.ui.common.someclass' , 'ournamespace.somewhereelse.someclass'
i've tried cleaning solution , rebuilding suggested in answers this ambigous reference question, continue see error. what's still lurking behind makes think deleted class still exists purposes of ambiguous reference? intellisense knows there's 1 now.
if @ project's references (via references
section of solution explorer
window), can right-click reference , select view in object browser
.
this allows investigate referenced assemblies see if offending class still lurking in of them.
Comments
Post a Comment