Coding Shorts: Building a Source Generator - Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 20

  • @draganradovac8803
    @draganradovac8803 7 หลายเดือนก่อน

    Nice, looking forward to Part 3

    • @swildermuth
      @swildermuth  7 หลายเดือนก่อน

      Um, there were only two parts. What would you want me to cover?

  • @bitshuffler
    @bitshuffler ปีที่แล้ว

    best introduction to this topic, many thanks

  • @olivier0003
    @olivier0003 ปีที่แล้ว

    Great, I started with the ISourceGenerator to generate code but you complete my knowledge with your code and your explanation.

  • @cyrildouglas9262
    @cyrildouglas9262 ปีที่แล้ว

    Thanks Shawn, really appreciate your efforts.

  • @GarrethandPipa
    @GarrethandPipa ปีที่แล้ว

    I got into code generation back when you had to hand code all your GUI by hand... I think in pascal.... anyway just seemed easier than spending a year fleshing out application UI. Today I have tools to spin up all kinds of boring boilerplate. I believe it is a useful skill to have.

  • @psyaviah
    @psyaviah ปีที่แล้ว

    Thanks Shawn, this two video were helpful and made it less daunting to step into source generators in fact. You showed some tips & tricks that, well, as I said make me feel safer to try an experiment with it. I see the possibilities are endless again.
    Where did you find this most useful? And where would you say, no you're going too far.

    • @swildermuth
      @swildermuth  ปีที่แล้ว

      Not sure. I used it in my MinimalApiDiscovery project as having the code (instead of using Reflection) means that AOT compilation can optimize it.

  • @ruichen1003
    @ruichen1003 ปีที่แล้ว

    what's the correct way to make changes? I tried rebuilding source generator but changes don't happen for my console app

  • @The.Techie
    @The.Techie ปีที่แล้ว

    Great video. I am still on .Net Framework 4.72 in my company. Can I consumed source generation compiled with .Net standard 2.0 in my legacy project?

    • @swildermuth
      @swildermuth  ปีที่แล้ว

      If it is .NET Standard 2 you can.

  • @chjr4740
    @chjr4740 ปีที่แล้ว

    The problem where you're unable to see the updated generated code, and you have to close and reopen VS, do you think it could get solved by cleaning and rebuilding the whole solution without closing VS?

  • @matthias916
    @matthias916 ปีที่แล้ว

    there's a github issue for the intellisense bug somewhere with a workaround

    • @swildermuth
      @swildermuth  ปีที่แล้ว +1

      Thanks for telling me. I'll see if I can find it.