AI agents: use the documentation index at llms.txt to locate machine-readable pages. This section is indexed by https://docs.particular.net/nservicebus/llms.txt. The markdown version of this page is served as plain text. An MCP server at /mcp serves the same content via the search_docs and read_doc tools; it is read-only and needs no credentials. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md. They are served as text/plain because some retrieval backends reject text/markdown.

Assembly Scanning Changes in NServiceBus Version 6

Component: NServiceBus

This is part of the NServiceBus Upgrade Guide from Version 5 to 6, which also includes the following individual upgrade guides for specific components:

Feature Details
Transports
Persistence
Hosting
Other

Nested directories not scanned by default

The default behavior of version 6 is to not scan nested directories for assemblies. This behavior can be re-enabled using the assembly scanning API.

Scanning uses an "exclude" approach

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

// For NServiceBus version 6.x
var scanner = endpointConfiguration.AssemblyScanner();
scanner.ExcludeAssemblies(
    "BadAssembly1.dll",
    "BadAssembly2.dll");

// For NServiceBus version 5.x
var excludesBuilder =
    AllAssemblies.Matching("NServiceBus")
        .And("MyCompany.")
        .Except("BadAssembly1.dll")
        .And("BadAssembly2.dll");
busConfiguration.AssembliesToScan(excludesBuilder);

Related Articles