Question

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.

Was it helpful?

Solution

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 ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top