Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper Navigate to MVC View

I recently upgraded to Resharper 8.1 and VS 2013

Before I could ctrl+click on a View to jump to it, but this no longer works. Is there a feature I need to enable to get it back?

 PartialView("_MainMenu", viewModel);
like image 270
Ian Vink Avatar asked Jan 31 '14 19:01

Ian Vink


4 Answers

Go to Resharper->Manage Extensions and click the Online tab. Then search for Resharper.ExternalAnnotations, and install the package it comes up with.

enter image description here

Finally go to Visual Studio Tools->Options and go to the Resharper->General options page. Click Suspend Now followed by Resume to restart Resharper.

enter image description here

like image 93
Samuel Jack Avatar answered Nov 03 '22 09:11

Samuel Jack


ReSharper 8.1 just doesn't support MVC 5.1

Latest EAP builds of ReSharper 8.1.1 do.

like image 38
derigel Avatar answered Nov 03 '22 08:11

derigel


ReSharper 8.2.1 (8.2.1000.4556) doesn't support MVC 5.2

EAP for 8.2 is closed

Bug registered

UPDATE:

FIXED: reply about fix from the Resharper team

You need to restart the VS and you will get notification about Update or run it manually from the Resharper => Extension Manager => Updates => Resharper.ExternalAnnotations (like in the Samuel answer)

like image 6
SerjG Avatar answered Nov 03 '22 08:11

SerjG


There still seems to be an issue with ReSharper and navigating to MVC Views or having the QuickFix (Alt+Enter) functionality available on them in the latest (as of this writing) version of ReSharper - v8.2.3000.5176.

My MVC version is 5.2. My ReSharper version is 8.2.3000.5176. When I installed this it seemed to install the ExternalAnnotations that come bundled with the update, also versioned at the same version number.

I can fix the issue by uninstalling the ExternalAnnotations (version 8.2.3000.5176) and re-installing the latest version offered from the ReSharper Gallery (which is version 8.2.2001.1). After a Visual Studio restart, my MVC quick-fixes and View navigation is back.

Strangely, I also get prompted by ReSharper that extension updates are available, and it wants to upgrade my ExternalAnnotations to version 8.2.3000.5176. If I do this (and restart VS) everything breaks again. Downgrading back to version 8.2.2001.1 (and a VS restart) will, however, fix it again.

A number of other people are also reporting this issue on JetBrain's ReSharper blog post that announced ReSharper 8.2.3

So, if you're using MVC 5.2.x and ReSharper 8.2.3, try to downgrade the version of the ExternalAnnotations that you're using and see if that solves the issue.

UPDATE (5th November 2014): There is now a new version of the ReSharper External Annotations available from the JetBrains "ReSharper Gallery". This new version is v8.2.3001 and I can confirm that once installed, this new version fixes the problem for me!

like image 4
CraigTP Avatar answered Nov 03 '22 09:11

CraigTP