简体   繁体   中英

@model doesn't exist in my view with VS2015 but work fine with VS2012

I've a project created with Visual Studio 2012 and it work fine, but when i open it with Visual Studio 2015 Entreprise Edition, i don't why but in my all views @model, ViewBag & co, doesn't exist VS2015 say "The 'model' doesn't exist in the current context" BUT my project compil WELL and work.

print screen here, on the left side from VS2012 on the right side from VS2015, the same view in the same project

Did someone already had that problem ?

My project is an basic ASP.NET MVC3 Project With RazorViewEngine

顺便说一下,@ Html,@ Html.Label,@ Html.Hidden和VS2015中的基本工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM