Open rusty21 opened 6 years ago
Jil relies heavily on IL generation and this just isn't something that Xamarin supports (on most of the target platforms you'd use it on). We get similar requests for Dapper, but until something like Roslyn code generators are added as a feature, it's just impractical to support.
That makes me a little sad. It would be nice to have an alternative to Newtonsoft. Jil's speed was a huge attraction for us as we have the need to serialize and deserialize tens of thousands of objects quite frequently. Newtonsoft wasn't giving us the performance we were looking for. I don't know much about this, but IL generation (intermediate language generation?) is what gives Jil its speed over just using reflection? I don't know whats special about IL generation and why xamarin would need to support it. I'd be curious if you had a way to explain it to a not so smart person :)
I'm not an expert here, but my understanding is those platforms will never allow it, because any form of metaprogramming (creating new functionality on the fly) is something really unwanted. For example, if you created some functionality that activated after an app store review, they'd be pissed. On the technical side, they're also just compiling past the IL phase and into the local platform level anyway...so there's nothing to interpret the IL if it were generated (that phase happened when the developer built the app, for most or all platforms).
I'm looking to use Jil inside of some our xamarin applications but after installing the package on a xamarin android project I receive the error on build
Should this not just work with xamarin supporting netstandard, and Jil supporting netstandard?