R# 8.1 Ambiguous reference in Razor view Follow
Hi,
can someone explain me this ReSharper 8.1 error in razor view ?
the mentioned ViewModel is simple class from another project which is referenced in web project. If I do clean solution, ambiguous reference is gone, but after rebuild it is back. It doesn't break compilation, but Intellisense yes
Looks like it sees the source code in referenced project, but also the compiled dll of the same project and can't decide what to do
thanks
kubiix
Please sign in to leave a comment.
Hard to say, but if it disappears and reappears when you clean and rebuild, I'd check that you haven't got an assembly reference from a project to a dll in a bin folder. ReSharper might be finding two copies of the dll, hence the ambiguous reference.
It happens to me every time after I publish my web projects.
Strange, that it affect only razor files, regular cs files in same project are fine