Reputation: 10560
When I add a new view I don't get intellisense for the HTML helper object until I compile. I guess it must be a VS issue. But what changes when I compile? What makes it work?
EDIT: More Details
I am running RC1 on VS2008 pro. I have had this issue since I started with MVC using preview 2. When I create a new view I do not get intellisense for the HTML helper object until I compile again. I have seen this issue mentioned in other places and the main point of the question is what compiling does that make the intellisense work.
Edit: Update Details
I just updated to RC2 and am still having this issue. I have it on all the machines in my office. They all run VS2008 sp1 pro on Vista 32 or 64 bit business
Upvotes: 1
Views: 196
Reputation: 12805
This seems to be intended behavior. One ASP.NET MVC tutorial has this to say:
You should build your project (select the menu option Build, Build Solution) before opening the Add View dialog or no classes will appear in the View data class dropdown list.
The tutorial does not explain why this is the case, it just mentions that it is. It's possible that the intellisense is actually looking at the compiled object, rather than the source code.
Upvotes: 1