I am adding a new migration but this message shows:
Unable to generate an explicit migration because the following explicit migrations are pending:
I had the same problems and was only able to resolve it running Add-Migration 'MigrationName' -Force
With -Force being the important part.