~/talk

Automate Yourself Out Of a Job With Roslyn

Talkat Build Stuff 2020 · 2020-11-11..11-15· [dotnet, compilers-and-language-design]
slides:none on file

Covers using Roslyn compiler-as-a-service to read, analyze and rewrite C# code: loads solutions via MSBuildLocator and Workspaces, inspects SyntaxTrees with the Visual Studio Syntax Visualizer, gets SematicModels and symbols to distinguish System.String vs custom types, and runs visitors and a CSharpSyntaxRewriter that modifies string literals. Shows a real project, VisualRecode WCF→gRPC, a NuGet legacy-workspace-loader to open old csproj files, and demonstrates applying changes back to the solution successfully.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04What is Roslyn
  3. 8:46Setting up workspace
  4. 10:33Syntax trees basics
  5. 14:08Navigating syntax trees
  6. 18:47Syntax query demo
  7. 20:13Syntax walker demo
  8. 23:43Semantic models explained
  9. 27:40Symbol demo
  10. 33:14Symbol visitor demo
  11. 39:59Finding all types
  12. 40:50Dependencies demo
  13. 43:00Rewriting code
  14. 47:19Analyzers and resources
  15. 48:43Q&A
~/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.