.NET target frameworks explained: net10.0, net10.0-windows, netstandard2.0 and multi-targeting
The TargetFramework in a project file decides which .NET APIs your code can use and where it can run. This guide explains target framework monikers (TFMs) such as net10.0, the operating-system specific ones such as net10.0-windows, .NET Standard and .NET Framework TFMs, how to target several frameworks at once, and the preprocessor symbols that let one codebase handle them all.
What a target framework is From the source
A target framework moniker (TFM) is the short name you put in the TargetFramework element of an SDK-style project file, for example net10.0. It tells the SDK which framework's APIs to compile against and which NuGet package assets to pick. Behind the scenes the SDK expands it into longer properties; net10.0 becomes the moniker .NETCoreApp,Version=v10.0.
Microsoft's frameworks page lists the latest stable TFMs as net10.0 for .NET 10, net9.0 for .NET 9, net8.0 for .NET 8, netstandard2.1 for .NET Standard, netcoreapp3.1 for .NET Core and net481 for .NET Framework 4.8.1. .NET 11, released in November 2026, follows the same pattern with net11.0.
At a glance · .NET
What a target framework isThe TFM familiesOperating-system specific TFMsTargeting several frameworksPreprocessor symbolsWhich TFM should you use?
The TFM families From the source
- .NET 5 and later: net5.0 up to net10.0 (and net11.0). These are the TFMs for new apps and most new libraries.
- .NET Core 1.0 to 3.1: netcoreapp1.0 to netcoreapp3.1. All are out of support; you meet them in older projects.
- .NET Standard: netstandard1.0 to netstandard2.1. Not a runtime but an API specification that several .NET implementations support. .NET 8, 9 and 10 all implement .NET Standard 2.1; .NET Framework 4.8.1 implements 2.0.
- .NET Framework: names without a dot, from net11 and net20 up to net48 and net481. Note the trap: net48 means .NET Framework 4.8, while net8.0 means .NET 8.
- Older platforms such as Silverlight, Windows Phone and UWP have their own TFMs (sl5, wp8, uap10.0), and some old names like dnxcore50 are deprecated.
Operating-system specific TFMs From the source
From .NET 5 on, a TFM can carry an operating system suffix. For .NET 8, 9 and 10 the suffixes are -android, -browser, -ios, -maccatalyst, -macos, -tizen, -tvos and -windows, for example net10.0-windows. An OS-specific TFM includes every API of its base TFM plus that platform's APIs.
- Apps that should run on several platforms, and most libraries, should target the base TFM such as net10.0.
- Windows Forms and WPF projects should target net10.0-windows.
- Cross-platform app models such as ASP.NET Core should target at least the base TFM.
- A version can be added after the OS, for example net8.0-ios17.2 or net8.0-android34.0. It selects the platform API bindings, not the minimum OS version your app supports; that is set with SupportedOSPlatformVersion. Leaving the version out uses the default for that .NET release, which is what Microsoft recommends if you want the latest bindings.
Targeting several frameworks From the source
Use the plural TargetFrameworks element with a semicolon-separated list, for example netstandard2.0;net8.0;net10.0. The SDK builds the project once per framework and packs all of them into one NuGet package. You can add references for one framework only with a condition on TargetFramework, for example an ItemGroup that applies only when TargetFramework equals net48.
When you publish a multi-targeted project, you must choose one framework with -f.
Preprocessor symbols From the source
The SDK defines symbols you can test with #if. To get a symbol from a TFM, replace dots and hyphens with underscores and use upper case: netstandard2.0 becomes NETSTANDARD2_0 and net10.0 becomes NET10_0.
- Versionless symbols are always defined for their family: NET for .NET 5 and later, NETCOREAPP, NETSTANDARD and NETFRAMEWORK.
- Version symbols such as NET8_0 are defined only for that exact version.
- OR_GREATER symbols such as NET8_0_OR_GREATER are defined for that version and every later one, so a check written today keeps working when you add net11.0.
- OS-specific TFMs add ANDROID, BROWSER, IOS, MACCATALYST, MACOS, TVOS or WINDOWS, plus versioned forms such as IOS15_1_OR_GREATER.
- DisableImplicitFrameworkDefines turns the generated symbols off.
Which TFM should you use? Analysis
- New apps: the newest supported .NET, net10.0 or net11.0. .NET 8 and 9 have been out of support since 10 November 2026, so net8.0 and net9.0 are only for code you have not upgraded yet.
- Libraries used only by modern .NET apps: target net10.0, or multi-target net10.0 and net11.0 if you want new APIs where they exist.
- Libraries that must also work on .NET Framework: add netstandard2.0 to the list. It is the highest .NET Standard version that .NET Framework supports, so it reaches the most consumers.
- Prefer OR_GREATER symbols over exact version symbols in #if checks; they survive the next upgrade without edits.
- Changing TargetFramework changes the runtime your app needs. If you upgrade the TFM, update your Docker base images, hosting runtime and CI SDK in the same change.
Sources and further reading
- Target frameworks in SDK-style projects (Microsoft Learn) (original source)
- Download .NET (official)
Original: “Target frameworks in SDK-style projects”, Microsoft Learn, published 25 Nov 2026, retrieved 25 Nov 2026. This article was generated from the official source using our structured templates and passed automated quality checks. Spotted a mistake? See our corrections policy.