R# 8.1 Ambiguous reference in Razor view

Hi,

can someone explain me this ReSharper 8.1 error in razor view ?

Ambi.png
Ambi2.png

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

3 comments
Comment actions Permalink

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.

0
Comment actions Permalink

It happens to me every time after I publish my web projects.

0
Comment actions Permalink

Strange, that it affect only razor files, regular cs files in same project are fine

0

Please sign in to leave a comment.