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
optionsCompiledAssemblyApiOptionsassemblySimpleNamestring
Returns
CompiledAssemblyApiOptionsPennington.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)
;
}