79569274

Date: 2025-04-11 16:04:34
Score: 0.5
Natty:
Report link

I want all files: Login.cshtml, Register.cshtml, AccessDenied.cshtml, ForgotPassword.cshtml, ResetPassword.cshtml

If you want the specific list in your post (i.e. Login.cshtml, Register.cshtml, AccessDenied.cshtml, ForgotPassword.cshtml, ResetPassword.cshtml)?

Use the switch --files for a list of files you specifically want to add.

dotnet aspnet-codegenerator identity --files "Account.Register;Account.Login;Account.AccessDenied;Account.ForgotPassword;Account.ResetPassword" --force

--force will overwrite existing files.

I want my command to generate Login.cshtml and Register.cshtml after I run scaffolding command.

dotnet aspnet-codegenerator identity --files "Account.Register;Account.Login"

Every UI file would be the following per the Identity scaffolding dialog:

Scaffoling UI

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Dave B