private static void ReplaceManagersWithDbDeployVersions(ExtendedProperties props, string assemblyName) { // our versions are straight subclasses of NVelocity's vanilla managers // EXCEPT ours will always be public, even when we ilmerge the assemblies var addStringProperty = props.GetType().GetMethod("AddStringProperty", BindingFlags.NonPublic | BindingFlags.Instance); addStringProperty.Invoke(props, new object[] { "resource.manager.class", typeof(DbDeployResourceManager).FullName + "," + assemblyName }); addStringProperty.Invoke(props, new object[] { "directive.manager", typeof(DbDeployDirectiveManager).FullName + "," + assemblyName }); }