Table of Contents

LoadBenchmarkAssemblies Method

Definition

Namespace
Codebelt.Extensions.BenchmarkDotNet
Assemblies
Codebelt.Extensions.BenchmarkDotNet.dll
Source
src/Codebelt.Extensions.BenchmarkDotNet/BenchmarkWorkspace.cs

LoadBenchmarkAssemblies()

Loads benchmark assemblies discovered recursively in the tuning folder.

public Assembly[] LoadBenchmarkAssemblies()

Returns

Assembly[]

An array of Assembly instances representing the loaded benchmark assemblies.

Remarks

Assemblies are selected by matching the configured BenchmarkProjectSuffix, the build configuration (Debug/Release based on AllowDebugBuild), and the target framework moniker (TargetFrameworkMoniker).

Exceptions

InvalidOperationException

Thrown when no matching assemblies could be loaded from the tuning folder. Ensure the tuning folder contains built benchmark assemblies for the configured build configuration and TFM.