Skip to content

OnlyIncludeAssemblies Element

Alexei Stryker edited this page Jun 27, 2018 · 1 revision

Cauldron.Interception forces the loading of referenced assemblies on startup by loading them in the module initializer.
With the OnlyIncludeAssemblies it is possible to define which of the referenced assemblies are included.

The following assemblies are always excluded.

  • Starts with Microsoft.
  • Starts with System.
  • Starts with Windows.
  • testhost
  • mscorlib
  • System
  • netstandard
  • WindowsBase

Example:

<Weavers VerifyAssembly="True">
  <Cauldron.Interception>
    <OnlyIncludeAssemblies>
      Cauldron. <!-- This will include all assemblies with a name that starts with Cauldron. -->
      AssemblyName <!-- This will include all assemblies with a name that starts with AssemblyName -->
    </OnlyIncludeAssemblies>
  </Cauldron.Interception>
</Weavers>
<Weavers VerifyAssembly="True">
  <Cauldron.Interception OnlyIncludeAssemblies="AssemblyName, Cauldron."/>
</Weavers>