static int Main(string[] args) { try { MigrationProject project = ParseCommandLine(args); WriteLine("Bamboo.Prevalence Version Migrator 1.0"); MigrationContext context = new MigrationContext(project); context.Migrate(); } catch (Exception x) { WriteLine(x.Message); return -1; } return 0; }
private void Migrate() { MigrationContext context = new MigrationContext(_project); context.ResolveAssembly += new ResolveEventHandler(HandleResolveAssembly); try { context.Migrate(); } finally { _resolvedAssemblies.Clear(); } }