Assembly scanning changes in Version 6

Component: NServiceBus

Nested Directories

The default behavior of Version 6 is to not scan nested directories for assemblies. This behavior can re-enable using the Assembly Scanning API.

Include moved to Exclude

The API has been changed to an "Exclude a list" approach. See Assemblies to scan for more information.

6.x NServiceBus
Edit
endpointConfiguration.AssemblyScanner().ExcludeAssemblies(
    "BadAssembly1.dll",
    "BadAssembly2.dll");
5.x NServiceBus
Edit
var excludesBuilder =
    AllAssemblies.Matching("NServiceBus")
        .And("MyCompany.")
        .Except("BadAssembly1.dll")
        .And("BadAssembly2.dll");
busConfiguration.AssembliesToScan(excludesBuilder);

Related Articles


Last modified