Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RequiresDynamicCode attribute to dynamic methods/members #3347

Open
rockfordlhotka opened this issue May 19, 2023 · 0 comments
Open

Add RequiresDynamicCode attribute to dynamic methods/members #3347

rockfordlhotka opened this issue May 19, 2023 · 0 comments

Comments

@rockfordlhotka
Copy link
Member

Generally speaking, CSLA will not work with ahead-of-time compilation (AOT) because it makes use of unbounded generic types, reflection, expression trees, and other features that are incompatible with AOT.

To be a good citizen, we should mark methods that build expressions, use reflection, etc. with the RequiresDynamicCode attribute.

https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/fixing-warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant