(VS2017) There was an error running the selected code generator: 'Sequence contains no elements'

前端 未结 13 2265
忘了有多久
忘了有多久 2021-01-04 11:34

I\'m running through one of Microsoft\'s tutorials on MVC development and I\'m getting errors when trying to create various elements; Views, Controllers, etc.

The e

13条回答
  •  迷失自我
    2021-01-04 12:05

    My project had a warning against one of the dependancies (Microsoft.VisualStudio.Web.CodeGeneration.Design). I removed that dependancy and then rebuilt the project.

    I then added a new Razor page and the dependancy was readded to the project - with an earlier version (2.1.9) and I can now add Razor pages without issue.

提交回复
热议问题