我有一个使用 Identity 的 .NET Core 2.2 MVC 应用程序。由于我使用的是 Visual Studio for Mac,因此我必须使用 CLI 构建身份文件。最初我只需要几个文件,所以我使用以下命令生成我需要的文件:
dotnet aspnet-codegenerator identity --files="Account.Manage.ChangePassword;Account.Register;Account.ResetPassword;Account.ResetPasswordConfirmation;Account.Manage.SetPassword;Account.Manage.Index"
我现在尝试通过运行生成另一个文件:
dotnet aspnet-codegenerator identity --files="Account.Manage.EnableAuthenticator"
但我收到以下错误: 以下文件存在。使用“--force”覆盖:Areas/Identity/Data/SAFDtoolsIdentityDbContext.cs Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml Areas/Identity/Pages/Account/Manage/ManageNavPages.cs
是否可以生成附加文件而不覆盖现有文件?我不想丢失我已经进行的任何自定义设置。
另外,如果我使用 --force ,只会覆盖错误中的 3 个文件,还是会覆盖我已经生成的每个文件?
largeQ
相关分类