'Visual Studio 2022 is not finding codegenerators for scaffolding

Rel: aspnet-codegenerator: No code generators available, Even after adding Microsoft.VisualStudio.Web.CodeGeneration.Design

I have the same issue as presented in the linked question but with Visual Studio 2022 and dotNet 6. Scaffolding controller using MVC Controller with views, using Entity Framework fails: enter image description here However MVC Controller with read/write actions succeeds. But afterwards adding view for any of the actions likewise fails: enter image description here

I have performed all actions suggested in the linked post. It looks like I have the right version:

Tool 'dotnet-aspnet-codegenerator' was reinstalled with the latest stable version (version '6.0.2').

The list of available codegenerators looks to include everything: enter image description here

Update: works from the command line though.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source