Reference the assembly loader in the Main method to stop it being optimized away, and don't reload assemblies once they're already loaded.