Table of Contents

Property TargetFramework

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

TargetFramework

Gets the target framework that the assembly was compiled against. Examples: ".NETFramework,Version=v4.7.2", ".NETCoreApp,Version=v6.0". This information is read from TargetFrameworkAttribute on the test assembly, which is normally auto-generated (but could be missing or empty).

public required string? TargetFramework { get; set; }

Property Value

string

Remarks

Note: Will be null if there was no value provided during deserialization.