This is an add-in for Fody
-
Include the
Fody
andILAccess.Fody
NuGet packages with aPrivateAssets="all"
attribute on their<PackageReference />
items. InstallingFody
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.