After installing AspNet5RC1, can no longer open cs

2019-02-01 21:53发布

问题:

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

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?

回答1:

As @chsword commented above:

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

  2. Delete the folder: ComponentModelCache

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