using System; using System.Reflection; using System.IO; public static class DisplayFusionFunction { public static void Run() { //Your code goes here AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; Assembly asm = Assembly.LoadFile(@"C:\DisplayFusionFunctions\BkgFuncs.dll"); Type type = asm.GetType("BkgFuncs.Callables"); object obj = Activator.CreateInstance(type); type.InvokeMember("IncrementVolume", BindingFlags.Default | BindingFlags.InvokeMethod, null, obj, new object[] { 5 }); } static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { string dllPath = @"C:\DisplayFusionFunctions"; string assemblyPath = Path.Combine(dllPath, args.Name.Substring(0,args.Name.IndexOf(',')) + ".dll"); return Assembly.LoadFrom(assemblyPath); } }