T5.TextTemplating by Atif Aziz,Mikayla Hutchinson

<PackageReference Include="T5.TextTemplating" Version="1.1.0" />

 CrossAppDomainAssemblyResolver

using System; using System.Reflection; namespace T5.TextTemplating { [Serializable] public class CrossAppDomainAssemblyResolver { private class ParentDomainLookup : MarshalByRefObject { public string GetAssemblyPath(string name) { Assembly assembly = Assembly.Load(name); if (assembly != (Assembly)null) return assembly.Location; return null; } } private readonly ParentDomainLookup parent = new ParentDomainLookup(); public Assembly Resolve(object sender, ResolveEventArgs args) { string assemblyPath = parent.GetAssemblyPath(args.Name); if (assemblyPath != null) return Assembly.LoadFrom(assemblyPath); return null; } } }