Table of Contents

Property TargetFramework

Namespace
Xunit.Sdk
Assembly
xunit.v3.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).

string? TargetFramework { get; }

Property Value

string