Visual Studio cannot resolve model, but Razor pages loads

后端 未结 4 1333
梦毁少年i
梦毁少年i 2020-12-10 13:02

I have an MVC 5 application, made from the empty template. I\'ve added Microsoft.AspNet.Mvc via Nuget and my packages file looks like so:

4条回答
  •  被撕碎了的回忆
    2020-12-10 13:39

    Closing ALL instances of Visual Studio worked for you, great.

    I get this symptom periodically, but I am using Resharper, and to fix it I have to

    • go into Resharper-Options "Clear Caches",
    • and then close and reopen Visual Studio

提交回复
热议问题