How does Hot Reload even work?
summary
Explains that hot reload sends small delta compilations (IL + metadata + PDB) rather than full DLLs, with Roslyn computing what changed and emitting an ENC map/log in the PDB so the runtime can apply updates by token ordering, not by stable IDs; shows tools ILSpy and MDV to inspect tables and deltas, and demos generation 1/2 token remapping and method-body swaps. Notes runtime limits (Mono/Blazor WASM only supports method-body updates) and the hack that deleted methods are replaced with stubs that throw MissingMethodException.
AI-written summary · about
chapters (10)
- 0:00Hot reload in .NET intro
- 1:05What .NET assemblies contain
- 12:45Hot reload model
- 17:17Delta compilation explained
- 26:55Demo: hot reload in action
- 35:47ENC log and map tables
- 41:52Runtime limits and root edits
- 51:38C# features blocking hot reload
- 59:31Modern runtime and Blazor Wasm
- 1:01:16Q&A
related talks
01h 09mBlazor Wasm Hot Reload Explained: Real-Time Dev with Rider
01h 01mDynamic Runtime Code with Roslyn
19mLive Q&A – Scott Hunter
56mHidden Difficulties of Debugger Implementation for .NET WASM Apps
07h 34mC#, F#, Blazor Wasm Hot Reload, Contract Testing, and More (Day 2)
01h 00mC# Language Internals
34mWhat happens to your code when you don't look?
50mWhat’s really going on under the hood? The hidden life of method calls.
