Suppose I have a model and a view that display this model properties.
public class UserModel
{
public string UserName { get; set; }
.................
}
somewhere in a view...
<%= Model.UserName %>
Now I rename one of the properties (say, UserName => FullUserName), VS will suggest to perform refactoring meaning project-wide renaming of references to this property. It will really work everywhere in code except in the views.
Why? There is a setting to have the views compiled at the project build. Why won't it perform simple little refactoring there as well?
Is there any way to persuade it to?