Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 asp net mvc 3 project razor view

I have problem with intellisense in my asp net mvc 3 project in new visual studio 2012 RC.

If I open VS2010 SP1 asp net mvc project in VS2012, cshtml view like this one :

@model Intranet.Web.ViewModels.Login.LoginVM           
@{
    Model.  // dynamic expression - This operation will be resolved at runtime
}

My configuration : Windows 8 x86(x64 fail too), VS 2012 and 2010SP1 installed.

So, is this bug?

Thanks

like image 484
Mennion Avatar asked Dec 16 '22 23:12

Mennion


1 Answers

Add <add key="webpages:Version" value="1.0" /> to <appSettings> in Web.config.

Otherwise, VS2012 will load Razor 2.0 in the editor, and the MVC config settings will not be applied.

like image 171
SLaks Avatar answered Dec 21 '22 22:12

SLaks