Coding Shorts: Ahead-of-Time Compilation in C# (AOT)

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 16

  • @javier-capello
    @javier-capello 5 месяцев назад +9

    This is, by far, the best C# channel in RUclips!

  • @lyudmilpetrov79
    @lyudmilpetrov79 5 месяцев назад +5

    Thank you so much Shawn for your knowledge spread, I have always enjoyed your teaching while back on Pluralsight as well. all the best

  • @heavypeki
    @heavypeki 5 месяцев назад +2

    Best guy on internet ever. I listened to Shawn live, he is amazing lecturer.

    • @swildermuth
      @swildermuth  4 месяца назад +1

      I never get sick of hearing that. In all honesty, I'm touched by your comment.

  • @PortalUser2
    @PortalUser2 5 месяцев назад +1

    Love these videos Shawn.

  • @noahmoerbeek6580
    @noahmoerbeek6580 3 месяца назад

    Very succinct explanation. Thank you.

  • @davestorm6718
    @davestorm6718 5 месяцев назад

    How would you compile AOT for a particular container if it's not on your dev machine?

    • @swildermuth
      @swildermuth  4 месяца назад +1

      Probably need to compile it in a VM, WSL or in a container.

  • @ghaf222
    @ghaf222 5 месяцев назад +1

    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!

    • @swildermuth
      @swildermuth  4 месяца назад +1

      That's fair. System.Text.Json uses a fair bit of reflection. I believe they're working on making it compatible.

    • @ghaf222
      @ghaf222 4 месяца назад +1

      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.

  • @MohammadKomaei
    @MohammadKomaei 4 месяца назад

    Please make a video for AOT publishing a blazor webapp to windows server and iis.

    • @swildermuth
      @swildermuth  4 месяца назад

      Two things I don't mess with: Blazor and IIS. Sorry I just don't know enough to do it justice.

    • @MohammadKomaei
      @MohammadKomaei 4 месяца назад

      @@swildermuth What about .net web (razor pages) project?