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

前端 未结 13 2432
忘了有多久
忘了有多久 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 11:56

    Turns out for me that Microsoft.VisualStudio.Web.CodeGeneration.Design was restored using the wrong .NetFramework version. So I launched the package manager console (Tools > NuGet Package Manager > Package Manager Console) and typed Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design -Version 3.0.0

    This fixed it for me.

提交回复
热议问题