target framework

The project setting, such as net10.0, that names which version of the .NET API surface your code is compiled against.

In more detail

It is a promise about which APIs you may call, not a statement about the machine you run on or the SDK you build with. A program built for net10.0 needs a 10.x runtime at startup and by default rolls forward to the newest installed patch. Choose the newest long-term support target your deployment policy allows and keep it explicit.

Example

<TargetFramework>net10.0</TargetFramework>

Related terms

Taught in

References