It’s been far too long since I last blogged and this one will act as another reminder for me.
I have been doing a bit of MVC lately, part of a management app for a series of web based applications... Part of the app which handles licensing was migrated from a previous project which was using aspx views. The new project is using Razor views.
I decided to re-create the views in Razor as they were fairly standard and would not take long to convert. With VS2010 twisting about the views existing when I attempted to re-create a view, I decided to exclude the existing views from the project. Great, with the new view in place I spun the project up and hey presto the data was not being displayed as expected???
The project was building fine, everything that needed to be in place was in place but, the page was rendering a view which was completely different to what had been coded up...
So after a while I figured out that the view which was being rendered was in fact the view which had been excluded from the project! Moral of the story… delete views don't exclude them otherwise you may go a little bit mental.