ILAsm 9.5.1
dotnet add package ILAsm --version 9.5.1
NuGet\Install-Package ILAsm -Version 9.5.1
<PackageReference Include="ILAsm" Version="9.5.1" />
<PackageVersion Include="ILAsm" Version="9.5.1" />
<PackageReference Include="ILAsm" />
paket add ILAsm --version 9.5.1
#r "nuget: ILAsm, 9.5.1"
#:package ILAsm@9.5.1
#addin nuget:?package=ILAsm&version=9.5.1
#tool nuget:?package=ILAsm&version=9.5.1
3F's IL Assembler (ILAsm) + IL Disassembler (ILDasm)
/REBASE
Rebase system object in order netstandard > System.Runtime > mscorlib is available starting from 4.700.2+
.typeref custom definitions
Starting from 9.3.0+ you can change the binding of any type for specific assemblies using the following .typeref directive:
grammar:
assemblyDecl : '.hash' 'algorithm' int32
| secDecl
| asmOrRefDecl
| '.typeref' dottedName 'at' dottedName
| '.typeref' dottedName 'any' 'at' dottedName
| '.typeref' dottedName 'constraint' 'deny'
| '.typeref' dottedName 'constraint' 'any' 'deny'
| '.typeref' dottedName 'assert'
| '.typeref' dottedName 'any' 'assert'
;
The format for changing the link:
.typeref 'Type' [any] at 'ResolutionScope'
Assertion of type declaration by current module (first at Module tables):
.typeref 'Type' [any] assert
//alias: .typeref 'Type' [any] at ''
The format for rejecting defined records (predefined by the user and the .assembler declaration):
.typeref 'Type' constraint [any] deny
Note keyword any points to multiple definitions starting from the specified Name
For example, predefined assembler's .typeref directives (when /REB is activated) will mean something like:
// 9.3.0+
.assembly 'ClassLibrary1'
{
.typeref 'System.' any at 'mscorlib'
.typeref 'System' at 'mscorlib'
.typeref 'System.Span`' any assert
.typeref 'System.ReadOnlySpan`' any assert
.typeref 'System.Memory`' any assert
.typeref 'System.ReadOnlyMemory`' any assert
.typeref 'System.MemoryExtensions' assert
.custom instance void ...
.custom instance void ...
.hash algorithm 0x00008004
.ver 1:0:0:0
}
Multiple definitions are competitive or interchangeable. Priority is given to the last from top to bottom. For example,
.typeref 'System.' any at 'System.Runtime'
.typeref 'System.Math' constraint deny
.typeref 'System.IO.' constraint any deny
.typeref 'System.' any at 'mscorlib'
.typeref 'System.' any assert
are equal to
.typeref 'System.' any assert
etc.
/CVRES
.res / .obj
In order to provide a compatible resource converter to obj COFF-format when assembling, use /CVRES (/CVR) key:
ilasm ... /CVR=cvtres.exe
Automatic search for resource converter
Automatic search is available starting from 9.3.0+ by using hMSBuild and other predefined falbacks to resolve .res / .obj processing automatically.
.line with support for both PDB types (MSF + Portable(BSJB))
ARM64 (AArch64) support for unmanaged exports (e.g. DllExport)
NuGet Package Preferences
$(ILAsm_RootPkg)- path to ILAsm package folder.$(ILAsm_PathToBin)- path to\binfolder., e.g. $(ILAsm_PathToBin)Win.x64\ilasm.exe$(ILAsm_W64Bin)and$(ILAsm_W86Bin)- e.g. $(ILAsm_W64Bin)ildasm.exe
Symbols (PDB) are available through GitHub Releases: https://github.com/3F/coreclr/releases
GetNuTool
GetNuTool simplifies the work at the solution level and more together with .pkg.install feature (see below), for example:
gnt ILAsm
gnt ILAsm/9.5.1
Documentation: https://github.com/3F/GetNuTool/?tab=readme-ov-file#tmodes-and-commands
~touch mode and use
For example, use the following commands to distribute
├─ilasm.exe
└─ildasm.exe
gnt ~ILAsm- All x86 + x64 + arm64 inside ILAsm subfolder- ILAsm\x64\, ILAsm\x86\, ILAsm\arm64\
gnt ~ILAsm -p:use=x86- Only x86 inside ILAsm subfolder- ILAsm\x86\
gnt ~ILAsm -p:use=arm64- Only arm64 inside ILAsm subfolder- ILAsm\arm64\
gnt ~ILAsm -p:use=@x64- Only x64- x64\ILAsm\
gnt ~ILAsm -p:use=arm64+x64- Only arm64 and x64 inside ILAsm subfolder- ILAsm\arm64\, ILAsm\x64\
gnt ~ILAsm -p:use=@x64+x86+arm64- x64 and x86 and arm64 in separate subfolders- x64\ILAsm\, x86\ILAsm\, arm64\ILAsm\
Note: touch mode is applicable only for GetNuTool v1.10 (or newer) and for ILAsm packages at least starting with 9.5.0.
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp is compatible. 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 | netstandard is compatible. netstandard1.0 was computed. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
| .NET Framework | net is compatible. 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. |
| native | native is compatible. |
| Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 was computed. |
| Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
| Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on ILAsm:
| Repository | Stars |
|---|---|
|
3F/DllExport
.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
|