.NET Code Tips

Free .NET developer tool

.NET & C# Versions, Support Dates & Target Frameworks

Which .NET versions still get security fixes and until when, the latest patch and SDK for each, every C# version with the Visual Studio release it shipped in, and what every target framework moniker gives you: C# version, #if symbols and .NET Standard support.

Runs entirely in your browser — nothing you paste is uploaded.

Latest release.NET 10.0LTS · runtime 10.0.14 · SDK 10.0.403
Latest LTS.NET 10.0Supported until Nov 14, 2028

.NET and .NET Core support

From Microsoft's release metadata, updated Nov 4, 2026. Status is computed for today's date.

VersionTypeStatusReleasedEnd of supportLatest runtimeLatest SDK
.NET 11.0STSPreview—Not announced11.0.0-rc.3.26522.14811.0.100-rc.3.26522.148
.NET 10.0LTSSupported2.0 years leftNov 11, 2025Nov 14, 202810.0.1410.0.403
.NET 9.0STSEnding soon6 days leftNov 12, 2024Nov 10, 20269.0.229.0.320
.NET 8.0LTSEnding soon6 days leftNov 14, 2023Nov 10, 20268.0.338.0.427

LTS (even-numbered) versions get three years of support, STS (odd-numbered) versions two. Patches ship on Patch Tuesday, the second Tuesday of each month. "Ending soon" means less than six months left.

.NET Framework support

.NET Framework 4.5.2 and later is a component of Windows and is supported as long as the Windows version it's installed on, except where a date is announced.

VersionTFMStatusReleasedNotes
4.8.1net481SupportedAug 9, 2022Follows the Windows lifecycle; the last .NET Framework version.
4.8net48SupportedApr 18, 2019Follows the Windows lifecycle.
4.7.2net472SupportedApr 30, 2018Follows the Windows lifecycle.
4.7.1net471SupportedOct 17, 2017Follows the Windows lifecycle.
4.7net47SupportedApr 11, 2017Follows the Windows lifecycle.
4.6.2net462Ending soonAug 2, 2016Support ends January 12, 2027.
4.5.2 – 4.6.1net452–net461Out of supportMay 5, 2014Ended April 26, 2022.
3.5 SP1net35SupportedAug 11, 2008Supported until January 9, 2029.

Target framework explorer

Pick a target framework moniker to see what it means for your project.

Moniker
net10.0
Product
.NET 10.0
Support
Supported
Default C# version
C# 14
Can reference .NET Standard
Up to 2.1

Implicit preprocessor symbols

Defined by the SDK for this target, in addition to DEBUG and TRACE.

  • NET
  • NET10_0
  • NETCOREAPP
  • NET5_0_OR_GREATER
  • NET6_0_OR_GREATER
  • NET7_0_OR_GREATER
  • NET8_0_OR_GREATER
  • NET9_0_OR_GREATER
  • NET10_0_OR_GREATER
  • NETCOREAPP1_0_OR_GREATER
  • NETCOREAPP1_1_OR_GREATER
  • NETCOREAPP2_0_OR_GREATER
  • NETCOREAPP2_1_OR_GREATER
  • NETCOREAPP2_2_OR_GREATER
  • NETCOREAPP3_0_OR_GREATER
  • NETCOREAPP3_1_OR_GREATER
MyProject.csproj
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
  </PropertyGroup>
</Project>
Multi-targeting
<TargetFrameworks>net10.0;net8.0</TargetFrameworks>

// In code, branch on the implicit symbols:
#if NET10_0_OR_GREATER
    // net10.0 or later in the same family
#else
    // the other targets
#endif

C# version history

Each C# version shipped in a Visual Studio release, and since C# 8 it has been the default language version for the .NET released alongside it.

C#ReleasedVisual StudioShipped withSDK default forHeadline features
C# 15 PreviewWith .NET 11Visual Studio 2026(update released with .NET 11).NET 11net11.0Collection expression arguments, union types, closed hierarchies, extension indexers, labeled break and continue
C# 14 Nov 2025Visual Studio 2026(18.0).NET 10net10.0Extension members, field-backed properties, null-conditional assignment, implicit span conversions, partial constructors and events
C# 13 Nov 2024Visual Studio 2022(17.12).NET 9net9.0params collections, System.Threading.Lock, \e escape, ref struct interfaces and allows ref struct, partial properties
C# 12 Nov 2023Visual Studio 2022(17.8).NET 8net8.0Primary constructors, collection expressions, alias any type, default lambda parameters, inline arrays
C# 11 Nov 2022Visual Studio 2022(17.4).NET 7net7.0Raw string literals, required members, list patterns, generic math (static abstract members), file-local types
C# 10 Nov 2021Visual Studio 2022(17.0).NET 6net6.0Global usings, file-scoped namespaces, record structs, lambda natural types, constant interpolated strings
C# 9 Nov 2020Visual Studio 2019(16.8).NET 5net5.0Records, init-only setters, top-level statements, and/or/not and relational patterns, target-typed new
C# 8 Sep 2019Visual Studio 2019(16.3).NET Core 3.0netcoreapp3.xnetstandard2.1Nullable reference types, async streams, indices and ranges, switch expressions, default interface members, using declarations
C# 7.3 May 2018Visual Studio 2017(15.7).NET Core 2.1.NET Framework (all)netcoreapp1.x–2.xnetstandard2.0 and earlierEnum, delegate and unmanaged constraints, tuple == and !=, ref local reassignment, stackalloc initializers

Since Visual Studio 2017, new C# versions arrive in Visual Studio updates together with the matching .NET SDK, so the compiler you have depends on the update installed, not just the year. The SDK picks the language version from <TargetFramework>; set <LangVersion> to use newer syntax on an older target.

.NET Standard compatibility

The minimum version of each platform that can use a library targeting that .NET Standard version. .NET 5 and later implement all of them.

.NET Standard.NET / .NET Core.NET FrameworkMonoUnity
netstandard2.1.NET Core 3.0, .NET 5+Not supported6.42021.2
netstandard2.0.NET Core 2.04.6.1 (4.7.2+ recommended)5.42018.1
netstandard1.6.NET Core 1.04.6.14.62018.1
netstandard1.3.NET Core 1.04.64.62018.1
netstandard1.2.NET Core 1.04.5.14.62018.1
netstandard1.1.NET Core 1.04.54.62018.1
netstandard1.0.NET Core 1.04.54.62018.1

Which version should you be on?

For a new application, use the newest release. STS releases get the same monthly patches as LTS releases while they're supported, and since .NET 9 they're supported for two years. If upgrading every year isn't realistic, stay on the latest LTS and move to the next LTS when it ships. Either way, keep up with the monthly patch releases: an app on an old patch of a supported version is missing the same security fixes as one on an unsupported version.

Checking what's installed

dotnet --list-runtimes and dotnet --list-sdks show what's on a machine, and dotnet --info shows which SDK a folder will use. A global.json file pins the SDK version for a repository. The SDK version doesn't decide the runtime: that's set by <TargetFramework>.

Frequently asked questions

What is the difference between LTS and STS releases of .NET?

A new major version of .NET ships every November. Even-numbered versions (.NET 8, 10) are Long Term Support and get three years of patches. Odd-numbered versions (.NET 9, 11) are Standard Term Support and, since .NET 9, get two years. Both receive the same monthly servicing updates while supported, so STS releases are just as production-ready, only shorter-lived.

Which target framework should a new class library use?

Target the oldest supported .NET you need, such as net8.0, or multi-target, as in <TargetFrameworks>net10.0;net8.0</TargetFrameworks>. Use netstandard2.0 only if the library must also load in .NET Framework 4.6.2+ apps, Unity or older Xamarin projects. .NET Standard 2.1 is rarely worth targeting because .NET Framework never implemented it.

Can I use a newer C# version with an older target framework?

Often, yes: set <LangVersion> in the project file. Features that are pure syntax, such as file-scoped namespaces, switch expressions and raw string literals, work on any target. Features that need runtime or library support, such as default interface methods, static abstract interface members and some ref struct features, fail to compile or need polyfill types on older frameworks. That’s why the SDK defaults to the C# version the framework was released with.

Which C# version comes with which version of Visual Studio?

C# versions ship in Visual Studio updates together with the .NET SDK, so it depends on the update, not only the year. Visual Studio 2019 16.3 brought C# 8 and 16.8 brought C# 9. Visual Studio 2022 17.0, 17.4, 17.8 and 17.12 brought C# 10, 11, 12 and 13, alongside .NET 6 to .NET 9. Visual Studio 2026 brought C# 14 with .NET 10. Earlier, each Visual Studio release had one C# version: VS 2005 had C# 2, VS 2008 C# 3, VS 2010 C# 4, VS 2012 C# 5 and VS 2015 C# 6, and VS 2017 went from C# 7.0 to 7.3 across its updates.

What does the support end date mean for my app?

After that date Microsoft stops shipping security fixes for that version, so newly found vulnerabilities in the runtime stay unpatched in your app. Most companies’ policies, and many compliance regimes, require moving to a supported version before then. Also keep up with patch releases while a version is supported: they ship on Patch Tuesday, the second Tuesday of each month.