Generalize AssemblyResolver so it works with any assembly reference