crossgen2
Crossgen2 is a tool in the .NET runtime toolchain used to ahead-of-time compile managed assemblies into native-ready code, creating ReadyToRun images that improve startup performance by reducing the JIT compilation workload at application start. Introduced as the successor to the legacy crossgen, crossgen2 is designed to work with the CoreCLR runtime across Windows, Linux, and macOS and to better support large framework dependencies and multi-targeting scenarios.
It analyzes the intermediate language, metadata, and commonly used code paths to emit architecture-specific native code
Crossgen2 is typically used as part of the application's publish or prebuild process, rather than at runtime.
Implementation and scope: Crossgen2 is part of the dotnet/runtime toolchain and is maintained as open source