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

前端 未结 21 2315
独厮守ぢ
独厮守ぢ 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:13

    I had this issue with a different error message "-1 is outs the bounds of.."

    The only thing that worked for me, was to remove the project from the solution by right clicking the project and selecting 'Remove'. Then right click the solution, Add Existing Project, and selecting the project to reload it into the solution.

    After reloading the project, I can now add views again.

提交回复
热议问题