~/talk

Automate yourself out of a job with Roslyn

Talkat NDC Porto 2022 · 2022-04-25..04-29· [developer-experience]
slides:none on file

Shows using Roslyn plus Microsoft.Build.Locator and MSBuildWorkspace to load .sln files, then reads SyntaxTrees and uses a SemanticModel to disambiguate types (system.string vs domain types). Demonstrates faster traversal with a CSharpSyntaxWalker vs LINQ queries, builds a CSharpSyntaxRewriter to append .ToUpperInvariant to literal strings (handles immutability by producing a new Solution and calling workspace.ApplyChanges), and describes a real project that auto-generates gRPC protobuf and adapter code from WCF contracts — it works, but needs autogenerated-file and symbol checks.

AI-written summary · about

  1. 0:00Start
  2. 1:16Write Code that Writes Code with Roslyn
  3. 3:12Roslyn & Visual ReCode
  4. 15:48Syntax Trees
  5. 20:32Navigating Syntax
  6. 31:00Semantic Models
  7. 44:05Finding all used types
  8. 52:59Rewriting Code
~/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.