InlineIL.Fody
Inject arbitrary IL code at compile time.
Install
| Product | Versions |
|---|---|
| .NET Standard | |
| Other |
README
InlineIL.Fody
This is an add-in for Fody which lets you inject arbitrary IL into your assembly at compile time.
Installation
Install the NuGet packages
FodyandInlineIL.Fody. InstallingFodyexplicitly is needed to enable weaving.PM> Install-Package Fody PM> Install-Package InlineIL.FodyAdd the
PrivateAssets="all"metadata attribute to the<PackageReference />items ofFodyandInlineIL.Fodyin your project file, so they won't be listed as dependencies.If you already have a
FodyWeavers.xmlfile in the root directory of your project, add the<InlineIL />tag there. This file will be created on the first build if it doesn't exist:<?xml version="1.0" encoding="utf-8" ?> <Weavers> <InlineIL /> </Weavers>
See Fody usage for general guidelines, and Fody Configuration for additional options.
Usage
Call static methods of the InlineIL.IL.Emit class to emit IL instructions.
See the GitHub repository for more information.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.