I refer to this Microsoft article.
I had Microsoft.AspNetCore.Identity.UI
3.1.1 when I scaffolded it to get the source of the Razor Pages. I have made changes to some of the Razor Pages.
The package is now on 3.1.4. Can I update the package? If I do so will it overwrite my changes?
Updating the identity nuget will not overwright any of your changes, but scaffolding it again will ask a confirmation to overwite the existing files.