ASP.NET Core not create a view

Viewed 64

I encounter this error when creating a view in the asp.net core project, what is the reason?

there was an error running the selected code generator : 'scaffolding failed' could not load information for project E:\my projects\ ... \ DataLayer.csproj

and i tried different Microsoft.VisualStudio.Web.CodeGeneration.Design versions

1 Answers

Try to update the dotnet-aspnet-codegenerator to the latest stable version may fix the issue.

dotnet tool update -g dotnet-aspnet-codegenerator
Related