I had the following error in package manager console when Add-Migration
Value cannot be null. Parameter name: connectionString
For me it was that I had appSettings.json instead of appsettings.json for some reason (not quite sure if VS did that with a newly created project or I had renamed it to that). Once I changed the name, it worked fine.
appSettings.json
appsettings.json