I would put the code using AppDomain.GetAssemblies() , which are then checked. The implementation of AppDomain.GetAssemblies() leads to an external method, so Reflector basically doesn't help here.
However, without trying and not checking the result, there are two logical options for ordering the assembly as a result:
In the first case, you may have to arrange the links between your assemblies and the boot order so that the external code finds the desired assembly with the entry point class and stops. In the second case, it would be pure business to call assemblies βrightβ, but I doubt it.
(However, the order may be completely different from the two above, for example, βmostlyβ randomly.)
In any case, I think that sooner or later the error code will encounter a problematic assembly and failure in any case. Thus, a strong recommendation: insist on fixing the error.
source share