This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

CompiledAssemblyApiOptionsExtensions Pennington.ApiMetadata.Reflection

Sugar for CompiledAssemblyApiOptions that resolves documented assemblies via Assembly instead of filesystem paths.

Methods

FromPackageReference

#
public static CompiledAssemblyApiOptions FromPackageReference(CompiledAssemblyApiOptions options, string assemblySimpleName)

Resolves assemblySimpleName in the host application's default load context (populated from the project's .deps.json and the NuGet cache), then adds the resolved .dll path to AssemblyFiles. Requires a matching <PackageReference> in the docsite project; no source reference to any type in the package is needed.

Parameters

options CompiledAssemblyApiOptions
assemblySimpleName string

Returns

CompiledAssemblyApiOptions

Pennington.ApiMetadata.Reflection.CompiledAssemblyApiOptionsExtensions

namespace Pennington.ApiMetadata.Reflection;

/// Sugar for CompiledAssemblyApiOptions that resolves documented assemblies via Assembly instead of filesystem paths.
public class CompiledAssemblyApiOptionsExtensions
{
    /// Resolves assemblySimpleName in the host application's default load context (populated from the project's .deps.json and the NuGet cache), then adds the resolved .dll path to AssemblyFiles. Requires a matching <PackageReference> in the docsite project; no source reference to any type in the package is needed.
    
public static CompiledAssemblyApiOptions FromPackageReference(CompiledAssemblyApiOptions options, string assemblySimpleName)
; }