문제

When I right-click a method and select Go to Implementation I am often presented with two implementations; one in my source code and one as a reference...

enter image description here

In this example, EmailService is in a different project that is loaded into the current Visual Studio solution and referenced as a project reference.

Selecting the reference one seems to do nothing, whereas selecting the source code one takes me to the implementation of the method (as expected).

This has happened on a couple of different development machines, in different projects.

What is causing this, and is it possible to resolve the issue so that Go to Implementation takes me directly to the source code implementation?

This is happening in Visual Studio 2012 with ReSharper 7.1 installed.

도움이 되었습니까?

해결책

With Alt-Shift-T or whatever you have for symbol search, is the checkbox for include library types selected?

If not, then it may be this Resharper bug. You can help fixing it if you create a small reproducible example and attach there ;)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top