CilTools.BytecodeAnalysis 2.9.0

dotnet add package CilTools.BytecodeAnalysis --version 2.9.0
NuGet\Install-Package CilTools.BytecodeAnalysis -Version 2.9.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CilTools.BytecodeAnalysis" Version="2.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CilTools.BytecodeAnalysis --version 2.9.0
#r "nuget: CilTools.BytecodeAnalysis, 2.9.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CilTools.BytecodeAnalysis as a Cake Addin
#addin nuget:?package=CilTools.BytecodeAnalysis&version=2.9.0

// Install CilTools.BytecodeAnalysis as a Cake Tool
#tool nuget:?package=CilTools.BytecodeAnalysis&version=2.9.0


Requirements: .NET Framework 3.5+ or .NET Standard 2.0+

CilTools.BytecodeAnalysis reads .NET methods' Common Intermediate Language (CIL) bytecode and converts it into high-level objects or textual CIL representation so they can be easily studied and programmatically processed. See Documentation and Examples for more information.



using System;
using System.Collections.Generic;
using CilTools.BytecodeAnalysis;
using CilTools.BytecodeAnalysis.Extensions;

namespace CilToolsExample
    class Program
        public static void Hello()
            int a = 1;
            int b = 2;
            Console.WriteLine("Hello, World");
            Console.WriteLine("{0} + {1} = {2}",a,b,a+b);

        static void Main(string[] args)
            IEnumerable<CilInstruction> instructions = typeof(Program).GetMethod("Hello").GetInstructions();

            foreach (CilInstruction instr in instructions)


/* Output:

ldstr      "Hello, World"
call       void [mscorlib]System.Console::WriteLine(string)
ldstr      "{0} \053 {1} \075 {2}"
box        [mscorlib]System.Int32
box        [mscorlib]System.Int32
box        [mscorlib]System.Int32
call       void [mscorlib]System.Console::WriteLine(string, object, object, object)

Copyright (c) 2022, MSDN.WhiteKnight

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on CilTools.BytecodeAnalysis:

Package Downloads

CilTools.Runtime reads Common Intermediate Language (CIL) bytecode of methods in external process's CLR instance using ClrMD.


The library that supports inspecting the contents of .NET assembly via reflection without loading it into the current process


Provides APIs that assist in lexical analysis of source code in various programming languages


Provides APIs that visualize syntax trees

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.9.0 168 3/20/2024
2.8.0 263 7/30/2023
2.7.0 204 4/26/2023
2.6.1 420 4/9/2023
2.6.0 404 4/2/2023
2.5.0 510 12/7/2022
2.4.0 1,071 2/20/2022
2.3.0 492 8/3/2021
2.2.0 718 3/31/2021
2.1.0 652 11/25/2020
2.0.0 578 7/20/2020
1.0.0 627 5/2/2020