Microsoft.CodeAnalysis.CodeGeneration Problem

Carolyn Schroeder
186
Reputation points
I am trying to scaffold a Razor View in a .NET 6 MVC project. I keep getting the error Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationArrayTypeSymbol Method "Accept" does not have an implementation
I have included and updated these NuGet packages to their latest version (4.4.0):
Microsoft.CodeAnalysis.Common
Microsoft.CodeAnalysis.Compilers
Microsoft.CodeAnalysis.CSharp
Microsoft.CodeAnalysis.VisualBasic
Microsoft.Net.Compilers.Toolset
How do I fix this error?