Hello, For callout packs, I use a code template with the following code in the Main.cs file: (excerpt - See entire file) # Main.cs
public override void Initialize()
{
...
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(LSPDFRResolveEventHandler);
}
...
public static Assembly LSPDFRResolveEventHandler(object sender, ResolveEventArgs args)
{
foreach (Assembly assembly in Functions.GetAllUserPlugins())
{
if (args.Name.ToLower().Contains(assembly.GetName().Name.ToLower()))
{
return assembly;
}
}
return null;
}Someone (@Yasd) pointed out something to me about this code and its purpose on one of my callout pack, but I have no idea what LSPDFRResolveEventHandler is actually used for. Could someone explain to me what this does technically, and in what situations it's needed? Thank you :) I hope this fits this forum.