Table of Contents

Class AssemblyUtility

Namespace
Xunit
Assembly
xunit.v3.runner.utility.netfx.dll

Utility functions for assemblies.

public static class AssemblyUtility
Inheritance
AssemblyUtility
Inherited Members

Methods

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

AssemblyMetadata

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