I had the following error in package manager console when Add-Migration
Value cannot be null. Parameter name: connectionString
I had the same error and resolved it by moving "ConnectionStrings" to be the first variable in the appsettings.json file.