dotnet build -c Release
Today, the for most developers is a hybrid approach: use the EventPipe ( dotnet-trace or the EventListener API) to capture JIT events and read the emitted IL through ClrMD or MetadataLoadContext . The next sections walk you through that workflow. msil trac
var methodDef = metadataReader.GetMethodDefinition(methodHandle); var body = methodDef.RelativeVirtualAddress == 0 ? null : peReader.GetMethodBody(methodDef.RelativeVirtualAddress); dotnet build -c Release Today, the for most
Now you have an executable ( MsilTracerDemo.dll ) ready to be traced. dotnet build -c Release Today