在安装了AspNet5RC1之后,不能再打开以前/新MVC项目中的cshtml文件

时间:2022-09-26 19:13:20

After installing AspNet5.ENU.RC1 any previous or new MVC project throws a

在安装AspNet5.ENU。任何以前的或新的MVC项目都会抛出一个

The operation could not be completed. Invalid pointer

操作无法完成。无效的指针

error when opening razor pages (.cshtml). Other files such as class libraries and config files open as expected. Any suggestions before I reinstall VS?

打开剃刀页面时出错(.cshtml)。其他文件如类库和配置文件按预期打开。在重新安装VS之前有什么建议吗?

1 个解决方案

#1


36  

As @chsword commented above:

如上@chsword评论道:

  1. Open the folder: Users\(user)\AppData\Local\Microsoft\VisualStudio (version)

    打开文件夹:user (user)\AppData\Local\Microsoft\VisualStudio (version)

  2. Delete the folder: ComponentModelCache

    删除文件夹:ComponentModelCache

  3. Restart Visual Studio (ComponentModelCache is re-created and the problem goes away)

    重启Visual Studio(组件模型缓存被重新创建,问题消失)

#1


36  

As @chsword commented above:

如上@chsword评论道:

  1. Open the folder: Users\(user)\AppData\Local\Microsoft\VisualStudio (version)

    打开文件夹:user (user)\AppData\Local\Microsoft\VisualStudio (version)

  2. Delete the folder: ComponentModelCache

    删除文件夹:ComponentModelCache

  3. Restart Visual Studio (ComponentModelCache is re-created and the problem goes away)

    重启Visual Studio(组件模型缓存被重新创建,问题消失)