views:

36

answers:

2

I have a simple ViewModel class like

public class TestViewModel
{
    public String Information { get; set; }
}

My View inherits from it and I got Intellisense kicking in. So far so good.

I have written these for tests in the View:

<%= Html.Encode(Model.Information) %>
-- <%= Html.Label("Information") %>
-- <%= Html.LabelFor(m => m.Information) %>
-- <%= Html.DisplayFor(m => m.Information) %>

I simply rename the property Information to Information2 and let Visual Studio, or Resharper 5, do its magic. However what I experience is that none of the properties in the View get adjusted resulting in none functioning code.

I was under the impression that refactoring would also update the view(s)? Am I doing something wrong or turned off some checkbox by accident in Visual Studio?

+1  A: 

Works on my machine! ;)

It think the correct answer is: http://www.jetbrains.com/support/resharper/

jfar
Oh come on :-).
XIII
Hmm, even the ultimate thing to do, reboot completely, didn't work.
XIII
I contacted Resharper support. Hopefully they can help me out.
XIII
A: 

I understand your pain my friend. Same here. Visual Studio 2010 Ultimate. Those are the moments where I simply address a curse at Microsoft and continue with my project.

Darin Dimitrov
Do you also use Resharper by any chance? Or just only the Ultimate edition?
XIII
No, I don't use Resharper, just the Ultimate edition. On my PC Visual Studio is slow enough without Resharper, can't even imagine working if I install it. It will become so slow that any productivity benefits from this plugin will be lost. This being said my expectations on IDE responsiveness are high. For example an acceptable speed for an IDE is the speed you get from notepad.exe.
Darin Dimitrov
Speaking of VS speed the other day I had to open an ASPX page on my colleague's PC and by the time it opened I actually forgot what I wanted to modify on this page. That's why I configured VS to open ASPX and ASCX pages with the text editor instead of using the HTML editor. Don't even talk about XAML. It is catastrophically slow. I mean for the money this cost Microsoft could have done a better job.
Darin Dimitrov
@Darin Dimitrov If I remember right the designer is the culprit. VS 2008 had the same issues. I think there is a setting. I run 2010 at about notepad speed so I'm not sure what your problem is.
jfar
@jfar, do you know the setting?
Darin Dimitrov
@Darin Dimitrov, don't remember, but I know I've toggled it before.
jfar
If you come up with it please let us know.
XIII