~/talk

Source Generators in Action

TalkinUkrainianat .NET fwdays'23 online conference · 2023-06-15..06-20· [developer-experience]
slides:none on file

Shows how to implement a real .NET source generator: project settings (class library targeting netstandard2.0, NuGet attributes), required workarounds (copying System.Text.Json DLLs into the build so the generator can access external files), and usage of templating libraries (Mustache, Scriban). Demonstrates generating mapper code from JSON for hundreds of API types, viewing the generated files in the IDE, debugging generators in Rider and Visual Studio, and compares use cases — one‑off bulk generation versus long‑running generators that replace runtime reflection (for example in Mediator) to improve execution speed.

AI-written summary · about

  1. 0:00Source Generators intro
  2. 1:50Source Generators purpose
  3. 6:14How Source Generators work
  4. 7:20First Source Generator
  5. 12:08Code generation from files
  6. 14:20Generation templates
  7. 15:44Dependencies and troubleshooting
  8. 16:51Debugging in VS
  9. 18:00Debugging in Rider
  10. 20:31Automatic debugging
  11. 21:55Viewing generated files
  12. 22:40Generated files in project
  13. 23:23Practical use cases
  14. 27:05Single vs. multiple scenarios
  15. 28:08Compile time impact
  16. 29:12Why hard to develop
  17. 30:42Comparison with old methods
  18. 31:24Source Generators future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.