Skip to content

AssemblyOrder

NexusLabs.Needlr.Injection

NexusLabs.Needlr.Injection.AssemblyOrdering

AssemblyOrder Class

Factory for creating assembly ordering configurations.

public static class AssemblyOrder

Inheritance System.Object 🡒 AssemblyOrder

Methods

AssemblyOrder.Alphabetical() Method

Creates a preset ordering: alphabetical by name.

public static NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder Alphabetical();

Returns

AssemblyOrderBuilder
A builder configured with alphabetical ordering.

AssemblyOrder.Create() Method

Creates a new assembly order builder.

public static NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder Create();

Returns

AssemblyOrderBuilder
A new builder instance.

AssemblyOrder.Create(Action<AssemblyOrderBuilder>) Method

Creates an ordering configuration from a builder action.

public static NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder Create(System.Action<NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder> configure);

Parameters

configure System.Action<AssemblyOrderBuilder>

Action to configure the ordering rules.

Returns

AssemblyOrderBuilder
The configured builder.

AssemblyOrder.LibTestEntry() Method

Creates a preset ordering: libraries first, then executables, tests last. Uses file location to distinguish DLLs from EXEs.

public static NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder LibTestEntry();

Returns

AssemblyOrderBuilder
A builder configured with lib-test-entry ordering.

AssemblyOrder.TestsLast() Method

Creates a preset ordering: non-test assemblies first, tests last. Use this for source-gen scenarios where only assembly names are available.

public static NexusLabs.Needlr.Injection.AssemblyOrdering.AssemblyOrderBuilder TestsLast();

Returns

AssemblyOrderBuilder
A builder configured with tests-last ordering by name.