Sigil-vNext 4.8.21

.NET Standard 1.5 .NET Framework 4.5.2
There is a newer version of this package available.
See the version list below for details.
dotnet add package Sigil-vNext --version 4.8.21
NuGet\Install-Package Sigil-vNext -Version 4.8.21
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="Sigil-vNext" Version="4.8.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sigil-vNext --version 4.8.21
#r "nuget: Sigil-vNext, 4.8.21"
#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 Sigil-vNext as a Cake Addin
#addin nuget:?package=Sigil-vNext&version=4.8.21

// Install Sigil-vNext as a Cake Tool
#tool nuget:?package=Sigil-vNext&version=4.8.21


A fail-fast, validating helper for DynamicMethod and ILGenerator.


Sigil is a roughly 1-to-1 replacement for ILGenerator. Rather than calling ILGenerator.Emit(OpCode, ...), you call Emit<DelegateType>.OpCode(...).

Unlike ILGenerator, Sigil will fail as soon as an error is detected in the emitted IL.


Since Sigil performs a great deal of verification it is necessarily slower than using ILGenerator directly. That being said, Sigil should be adequately performant for most purposes.

Sigil may be too slow for practical use if you need:

  • More than ~100 labels and branches
  • Methods with more than ~10,000 instructions

Some costly optimizations can be disabled via the OptimizationOptions enumeration, and some validation steps can be deferred via the ValidationOptions enumeration.

Unsupported Operations

Fault blocks are not supported because of their rarity (there is no C# equivalent) and because they are forbidden in dynamic methods.

Sigil does not support Calli when disassembling delegates, as the C# compilers will not emit that instruction it is currently untestable.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Sigil-vNext:

Package Downloads

Automatic instrumentation library used by .NET Tracer for Datadog APM. Requires separate native library that implements the CLR Profiling API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.8.41 941,454 7/8/2019
4.8.34 410 7/7/2019
4.8.21 388 7/5/2019

Updates to support .NET 4.5.2, 4.6.2, 4.7.2, 4.8 and .NET Standard 1.5 and 2.0