I had a look at AOT a few months back. In my applications I often serialise and deserialise to/from JSON and I was shocked that this doesn’t just work in AOT, e.g. even serialising an integer to JSON will fail. You need to take some extra steps to make this work, which is fine, but it scared me away for the time being!
My main issue was that despite the JSON stuff not working without changes the code did compile, and I only found out when I ran the release version. This made me worry about what else might not be working. But certainly I hope to come back to it at some point.
This is, by far, the best C# channel in RUclips!
Thank you so much Shawn for your knowledge spread, I have always enjoyed your teaching while back on Pluralsight as well. all the best
Best guy on internet ever. I listened to Shawn live, he is amazing lecturer.
I never get sick of hearing that. In all honesty, I'm touched by your comment.
Love these videos Shawn.
Thanks!
Very succinct explanation. Thank you.
Glad to hear.
How would you compile AOT for a particular container if it's not on your dev machine?
Probably need to compile it in a VM, WSL or in a container.
I had a look at AOT a few months back. In my applications I often serialise and deserialise to/from JSON and I was shocked that this doesn’t just work in AOT, e.g. even serialising an integer to JSON will fail. You need to take some extra steps to make this work, which is fine, but it scared me away for the time being!
That's fair. System.Text.Json uses a fair bit of reflection. I believe they're working on making it compatible.
My main issue was that despite the JSON stuff not working without changes the code did compile, and I only found out when I ran the release version. This made me worry about what else might not be working. But certainly I hope to come back to it at some point.
Please make a video for AOT publishing a blazor webapp to windows server and iis.
Two things I don't mess with: Blazor and IIS. Sorry I just don't know enough to do it justice.
@@swildermuth What about .net web (razor pages) project?