The type or namespace name 'Models' does not exist in the namespace 'PartyInvites'

孤街浪徒 提交于 2019-12-02 05:15:15

I've finally found an answer that worked. It's a bug in VS2013 that is causing the problem, below is the link with the answer.

but in short, turning off the "Get everything when a solution or project is open" solves the problem, though not a complete fix, but for me it solved the problem

http://connect.microsoft.com/VisualStudio/feedback/details/760443/visual-studio-2012-ide-loses-intellisense-and-reference-resolution

Hope this helps others.

I got the same error and i solved it by noticing that my newly added model name was e.g abc.Models while my application name was xyz and all other models lie in xyz namespace so i edited the trouble making model and changed its namespace to xyz.Models and that worked :)

My Models namespace for me was trying to run under APPNameSpace.APPNameSpace.Models Enable-Migrations built the classes as APPNameSpace.Models so I removed the APPNameSpace from the start of each class and it worked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!