Resharper 5 and Asp.Net MVC
Just discovered this now. When you add a new action to an ASP.Net MVC controller, Resharper 5 marks the View() method as “in error”:

At first, I was a bit confused. I mean, the code was that simple, it was not possible that it should contain errors. But then I hovered over the “erroneous” method, and lo and behold:

There’s nothing wrong with the C# code, but it’s the actual view (the .aspx file) that’s missing. And I even have to option to create one. So, let’s try that:

I get a nice popup asking for some extra params. No need for them, so we just hit enter to dismiss the dialog. And yes, Resharper creates the view for me, at the correct location:

Easy as pie, but it’s a nice touch *and* a timesaver. But that’s what Resharper is for, isn’t it?
No comments
Jump to comment form | comments rss [?] | trackback uri [?]