CONFIGURATION

TargetFrameworks

Defines multiple target frameworks; each must have compatible dependencies and tooling.

Formal Syntax & Structure

csharp syntaxcsharp
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
C# & .NET Reference