same problem here
Building project ...
Finding the generator 'identity'...
Running the generator 'identity'...
Length cannot be less than zero. (Parameter 'length')
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:05.12
dotnet list package
Project 'WebAuthentication' has the following package references
[net6.0]:
Top-level Package Requested Resolved
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore 6.0.9 6.0.9
Microsoft.AspNetCore.Identity.EntityFrameworkCore 6.0.9 6.0.9
Microsoft.AspNetCore.Identity.UI 6.0.9 6.0.9
Microsoft.EntityFrameworkCore.Design 6.0.9 6.0.9
Microsoft.EntityFrameworkCore.SqlServer 6.0.9 6.0.9
Microsoft.EntityFrameworkCore.Tools 6.0.9 6.0.9
Microsoft.VisualStudio.Web.CodeGeneration.Design 6.0.10 6.0.10
Serilog.AspNetCore 6.0.1 6.0.1
Serilog.Settings.Configuration 3.4.0 3.4.0
Serilog.Sinks.Console 4.1.0 4.1.0
Serilog.Sinks.Debug 2.0.0 2.0.0
Serilog.Sinks.File 5.0.0 5.0.0
I already tried to scaffold with "-f" and "$env:codegen_trace=1", but I still get the same error without a hint. Plz help!