Visual studio 2022 error while creating a controller via scaffolding, "there was an error getting the type.(model name), try rebuilding the project."

71 views Asked by At

I am trying to follow a yt tutorial https://youtu.be/OLBmtRFFwcQ?si=MIb_Y9mXzgGpk51y at around 8 mins, I encountered this problem

enter image description here

after a quick bing search it says that I am missing something in my Visual studio, idk what it is and kinda stuck in this problem now, just a newbie in this backend stuff please be considerate :>

1

There are 1 answers

0
IHateCoding On

I already fixed this problem by rebuilding the solution and updating NuGet packages.