Just ran into an exception when running both update-database and add-migration in the Package Manager Console for an EF Code First project. The Exception read:
The type initializer for
System.Data.Entity.Migrations.DbMigrationsConfiguration\'1 threw an exception.
The cause? An invalid config file for the project I was trying to run the tools for. So: if you run into this exception, check your configs 😉