0

Working with .net5 MVC app, right clicking in a controller's action and selecting add view --> Razor view(Not empty)

enter image description here

After clicking Add the following error appears :

enter image description here

Scaffolding was working well until about 2 days ago. Any ideas what could be wrong?

Thanks in advance !!

George Piano Manikas
  • 1,113
  • 2
  • 6
  • 5

1 Answers1

1

navigate to NuGet packages and make sure you have a (Microsoft.VisualStudio.Web.CodeGeneration.Design) and you should make sure that is the version above 5.0.0

if you already have make sure the build go without fails and just restart the visual studio and it should works.

  • Tried that . Didn't work ! Thank you ! I finally re-installed .net and visual studio and problem solved. It was i think one of that small bugs that waste your precious time trying to solve them instead of pure coding !!!! – George Piano Manikas Aug 30 '21 at 20:46