Skip to content

huoshan12345/ILAccess.Fody

Repository files navigation

ILAccess.Fody

Build NuGet package .net License
Icon

This is an add-in for Fody


Installation

  • Include the Fody and ILAccess.Fody NuGet packages with a PrivateAssets="all" attribute on their <PackageReference /> items. Installing Fody explicitly is needed to enable weaving.

    <PackageReference Include="Fody" Version="..." PrivateAssets="all" />
    <PackageReference Include="ILAccess.Fody" Version="..." PrivateAssets="all" />
  • If you already have a FodyWeavers.xml file in the root directory of your project, add the <ILAccess /> tag there. This file will be created on the first build if it doesn't exist:

    <?xml version="1.0" encoding="utf-8" ?>
    <Weavers>
      <ILAccess />
    </Weavers>

See Fody usage for general guidelines, and Fody Configuration for additional options.

Usage

Examples