Ambiguous references with the exact same namespace

The RC class is not linked to a database, it is a simple class. The class is at only one place and is not partial. The Aérochem.Domain dll project compiles just fine.

Note: If I select one of the two identical namespaces in the quick fix menu, it does nothing.

Note2: This happens to a couple of classes (some related to a database, some not)

Is there a fix to that or a way to figure what's wrong?

enter image description here


Solution 1:

I had the same problem. I use ReSharper. The solution to my problem was not cleaning the solution but deleting the suo-file. Hope that helps.

Solution 2:

As for the reference of any future users: This thread covers four answers whereas two are in the comments. I have faced the issue several times, three of these answers have helped me in the past, so if you face the same issue, try any of these:

  • Clean and/or Rebuild the Solution then reanalyze the files in Resharper.
  • Restart Visual Studio then reanalyze
  • Delete the bin/ folder then reanalyze
  • (Apparently deleting the suo-file can help, too, although I never had to do that and can't understand how it should help)
  • A combination of the three above.

(This is not really a new answer, it is more of a comment on the variety of answers and comments found - it is a community wiki so feel free to adapt it if necessary)