IL2123: RequiresUnreferencedCodeAttribute
cannot be placed directly on application entry point
Cause
RequiresUnreferencedCodeAttribute 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.
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.