Visual Studio 2010 MVC2 Target Issue
Friday, July 02 2010 - vs2010
I’ve been doing a lot of development with VS2010 and MVC2. One problem I ran into last week was that intellisense was reporting 154 errors (gasp!) due to my use of HTML.TextBoxFor(xxxx) type helpers.
I tried everything to fix it: Reinstall various pieces and parts of .NET4 framework and Visual Studio, rebooting, clearing out cached files, etc., with nothing resolving it. Yesterday I finally did manage to fix it:
- Set the main web project to Target the 3.5 framework and compile (which of course breaks).
- Save the entire solution and close.
- Reopen the solution and set the Target Framework to 4.0.
Voila intellisense figured it out. All these steps might not be necessary, but it is what worked for me.



