Table of Contents

Method GetAssemblyMetadata

Namespace
Xunit
Assembly
xunit.v3.runner.common.dll

GetAssemblyMetadata(string)

Gets metadata (including target framework and xUnit.net version) for the given assembly (on disk). This uses Mono Cecil to prevent officially loading the assembly into memory.

public static AssemblyMetadata? GetAssemblyMetadata(string assemblyFileName)

Parameters

assemblyFileName string

The assembly filename.

Returns

The assembly metadata, if the assembly was found; null, otherwise.