IL3057: RequiresDynamicCodeAttribute
cannot be placed directly on application entry point
Cause
RequiresDynamicCodeAttribute on entry points is not allowed since the method will be called from code that is not subject to static analysis. Entry points include the Main
method or methods annotated with UnmanagedCallersOnlyAttribute with EntryPoint
property specified.