Try setting the profiles on the migration context before being passed to the migration runner like this:
IRunnerContext migrationContext = new RunnerContext(announcer);
migrationContext.Profile = "DevMigrator"
The profile loader method FindProfilesIn
only returns the migrations with the profile. The constructor of the RunnerContext
loads the ProfileLoader
which by default loads the migrations for the specified profile in the context (I think this defaults to null therefore having no profile migrations).
You shouldn't need to manually call the ApplyProfiles
method as this is called in the MigrateUp(bool)
method.