by Mike.Sheen » Sun Apr 18, 2021 2:38 pm
When you launch a form (the FormFactory creates it), we look in the SY_forms table - if it's FormType is 1, then we use the AssemblyFullName to load the assembly and then create an instance of the ClassName.
When the FormType is 2, we treat the AssemblyFullName as the Plugin.RecID - so we find in the loaded plugins the plugin matching the RecID and then create an instance of the ClassName from it's assembly.
We don't support an embedded assembly reference containing the form.
You might be able to fool the system by having the FormType as 1 in SY_Forms and setting the AssemblyFullName being the assembly full name of your embedded reference ("MyEmbeddedReference, Version=1.0, Culture=neutral, PublicKeyToken=null" or whatever) - the AssemblyResolver might need to be handled, however - so that it can be directed to the right folder to find the assembly. We have a RuntimeFolder property of the plugin, so that's how you know which folder to find the embedded reference assembly.
My gut feeling is you probably could make it work, but I can't say for sure without trying it myself.
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution