Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two implementations of a method? (VS2012 + ReSharper 7.1)

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.

like image 762
Richard Ev Avatar asked Jul 31 '13 09:07

Richard Ev


1 Answers

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

like image 155
andreister Avatar answered Nov 03 '22 11:11

andreister