As a result, I introduced the assembly of records in the library.
In library
class AssemblyHelper { // This can be called instead of Assembly.GetEntryAssembly() public static Func<Assembly> GetEntryAssembly; }
In the startup application (which uses the library):
class Program { public static void Main() { AssemblyHelper.GetEntryAssembly = () => typeof(Program).GetAssembly(); .... } }
source share