Can't Add View from Controller in VS 2015 : “There was an error running the selected code generator”

前端 未结 21 2393
独厮守ぢ
独厮守ぢ 2020-11-27 18:34

I\'m following a video tutorial where I\'m required to create an empty ASP.NET Web Application with MVC, using Visual Studio 2015, bei

21条回答
  •  遥遥无期
    2020-11-27 19:32

    Try clearing the ComponentModelCache, the cache will rebuild next time VS is launched.

    1. Close Visual Studio
    2. Delete everything in this folder C:\Users\ [your users name] \AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
    3. Restart Visual Studio

    14.0 is for visual studio 2015. This will work for other versions also.

提交回复
热议问题