the problem may be "virtual". You need to have SqlServerSpatial140.dll in bin folder at the moment you issue add-migration command.
Just copy the .dll to bin for development purpose and replace manually the version (x86/x64) during deployment.
Sql Server (2012+) already has the assembly installed.