Set Up the AppDynamics.Agent.AutoInstrument.Fody Package
- Add the AppDynamics.Agent package.
- Add the
AppDynamics.Agent.AutoInstrument.Fodypackage.Note: To install theAppDynamics.Agent.AutoInstrument.Fodybeta package, check the "Include prereleases" option in order for the version to be displayed. - Build the solution. After you build the solution, two files should be generated automatically:
FodyWeavers.xmlFodyWeavers.xsd
Note: If the above files are not generated automatically, a new file calledFodyWeavers.xmlshould 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 theFodyWeavers.xmlfile has to be updated to include theAppDynamics.Agent.AutoInstrumentweaver.For example:
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> ... Existing weavers ... <AppDynamics.Agent.AutoInstrument /> </Weavers>