Home > front end >  I can't add view in ASP.NET Core MVC
I can't add view in ASP.NET Core MVC

Time:09-22

Using ASP.NET Core 6.0 MVC, I'm attempting to create a web project with an n-tier architecture. I encounter the following issue when attempting to add a view from the Controller. After a few hours of investigation, I was unable to come up with a solution; therefore, I would appreciate your assistance.

Error message:

There was an error running the selected code generator: 'Scaffolding failed. Could not load information for project C:\Users\PC\source\repos\BlogProject\BusinessLayer\BusinessLayer.csproj'

CodePudding user response:

This is how i solved the bug temporarily, Within the View folder, I made a category folder (my controller's name). Index.cshtml was manually inserted to the category folder. I believe there is a general issue with nuget packages.

  • Related