Domanda

I upgraded to MVC5 and ever since I did so I've noticed that a bunch of functionality seems to be missing.

Example:

public ActionResult MyAction()
    {
        var model = new MyModel();
        return View(model);
    }

Used to be that if I hit Ctrl+B on "View" it would take me to the .cshtml view file (MyAction.cshtml). Same thing in the actual view files.

@using (Html.BeginForm("MyFormAction", "MyController", FormMethod.Post)) {...etc.}

When Ctrl+B was used on the "MyFormAction" text, it would go to that controller action.

I've migrated to VS2013, upgraded to Resharper8 (was going to do these things anyway) thinking it all would just come back, but no.

Any ideas??

È stato utile?

Soluzione

I suppose you upgraded to MVC 5.1

Look at this question Resharper Navigate to MVC View

In short, go to to Extension Manager and install latest annotations package.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top