-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
NativeAOT support? #2152
Comments
The AOT support is blocked by reflections code in |
Adding attributes to those methods can fix those warnings, and should be able to do so without changing any functionality. Here's a link to an article that explains how to support NativeAOT. |
It still produces warnings. Is there any way we can make it AOT-compatible using the guide suggested by @emrys90? |
Ok, I tried now and the embedded XML serialiser creates all sort of pain. Basically, its I only see one option: remove XML from formats supported by default, move all XML stuff to the XML package (existing one). Thoughts? |
Further research (I never used source generator provided by Which means that the scope of change is way beyond "just" adding some attributes as the whole serialisation story will be annotated and the only way it will work with trimming is to make calls without body and with responses that don't require deserialisation. To me, it kind of defeats the purpose of using RestSharp at all. |
It would be nice to have full NativeAOT support for RestSharp. It currently logs trimming warnings.
The text was updated successfully, but these errors were encountered: