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 this problem too for a database that I knew was up to date when running Add-Migration. Solved by simply running the Add-Migration command a second time. Suspect a connectivity issue, as suggested by Robin Dorbell above.