How to load DLL when loading .gha?

because i used many dll when writing gha component,so i want to hide them.

so I put all reference dll in gha,make the dlls as “embedded resource”, something like this:

and then i had to load these dll when load .gha.

i find a way to do this by using AssemblyResolve

i put AssemblyResolve in TabIcon class:

But it doesnot work,the reason I found: in TabIcon class,AssemblyResolve cannot capture the error of missing DLL
so can anyone tell me where to put the AssemblyResolve?

I would recommend using Yak and just shipping the DLLs along with your GHA.