Sigil-vNext
4.8.21
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
<PackageReference Include="Sigil-vNext" Version="4.8.21" />
paket add Sigil-vNext --version 4.8.21
#r "nuget: Sigil-vNext, 4.8.21"
// 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
Sigil
A fail-fast, validating helper for DynamicMethod and ILGenerator.
Usage
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.
Performance
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 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 | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.5 is compatible. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. 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. |
-
.NETFramework 4.5.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.6.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.7.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.8
- Packaging.Targets (>= 0.1.45)
-
.NETStandard 1.5
- NETStandard.Library (>= 1.6.1)
- Packaging.Targets (>= 0.1.45)
- System.Reflection (>= 4.3.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.Metadata (>= 1.6.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.5.1)
-
.NETStandard 2.0
- Packaging.Targets (>= 0.1.45)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.Metadata (>= 1.6.0)
- System.Reflection.TypeExtensions (>= 4.5.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sigil-vNext:
Package | Downloads |
---|---|
LightStep.Trace.ClrProfiler.Managed
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.
Updates to support .NET 4.5.2, 4.6.2, 4.7.2, 4.8 and .NET Standard 1.5 and 2.0