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

前端 未结 13 2375
忘了有多久
忘了有多久 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:02

    I've upvoted @James's comment because it worked for me, but I wanted to add it as an answer to make it more visible to others:

    Open the package manager console:

    Tools > Nuget Package Manager > Package Manager Console

    Type:

    dotnet restore
    

    No restart / reinstall required.

提交回复
热议问题