Table of Contents

Property TargetFramework

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

TargetFramework

Gets the target framework that the assembly was compiled against.
Examples:

  • .NETFramework,Version=v4.7.2
  • .NETCoreApp,Version=v8.0
public required string? TargetFramework { get; set; }

Property Value

string

Remarks

This information is read from TargetFrameworkAttribute on the test assembly, which is normally auto-generated by the compiler (but could be missing or empty).