Table of Contents

Class AssemblyMetadata

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

Represents metadata about an assembly.

public class AssemblyMetadata
Inheritance
AssemblyMetadata
Inherited Members

Constructors

AssemblyMetadata(int, string?)

Initializes a new instance of the AssemblyMetadata class.

public AssemblyMetadata(int xunitVersion, string? targetFramework)

Parameters

xunitVersion int

The xUnit.net version (0 = unknown, or 1/2/3)

targetFramework string

The target framework

Properties

TargetFrameworkIdentifier

Gets the target framework identifier the assembly was built against.

public TargetFrameworkIdentifier TargetFrameworkIdentifier { get; }

Property Value

TargetFrameworkIdentifier

TargetFrameworkVersion

Gets the version of the target framework identifier that the assembly was built against.

public Version TargetFrameworkVersion { get; }

Property Value

Version

XunitVersion

Gets the major version of xUnit.net this assembly targets (1, 2, or 3); may return a value of 0 if the version is unknown.

public int XunitVersion { get; }

Property Value

int