Set Up the AppDynamics.Agent.AutoInstrument.Fody Package

  1. Add the AppDynamics.Agent package.
  2. Add the AppDynamics.Agent.AutoInstrument.Fody package.
    Note: To install the AppDynamics.Agent.AutoInstrument.Fody beta package, check the "Include prereleases" option in order for the version to be displayed.
  3. Build the solution. After you build the solution, two files should be generated automatically:
    • FodyWeavers.xml
    • FodyWeavers.xsd
    These files should be checked into source control.
    Note: If the above files are not generated automatically, a new file called FodyWeavers.xml should be created manually with the following content:
    <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
    <AppDynamics.Agent.AutoInstrument />
    </Weavers>

    If the project is already using Fody, these files will already be there and only the FodyWeavers.xml file has to be updated to include the AppDynamics.Agent.AutoInstrument weaver.

    For example:

    <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
    ... Existing weavers ...
    <AppDynamics.Agent.AutoInstrument />
    </Weavers>