Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.45 KB

netsdk1138.md

File metadata and controls

39 lines (29 loc) · 1.45 KB
title description ms.topic ms.date f1_keywords
NETSDK1138: The target framework is out of support
How to resolve the `framework out of support' error message.
error-reference
07/08/2022
NETSDK1138

NETSDK1138: The target framework is out of support

NETSDK1138 indicates that your project targets a version of the framework that is out of support. The full error message is similar to the following example:

The target framework '<framework>' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.

Out-of-support versions include 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, and 5.0.

To resolve this error, change your project to target a supported version of .NET.

If you want to suppress the message without targeting a later framework, set the MSBuild property CheckEolTargetFramework to false. You can set it in the project file or by passing /p:CheckEolTargetFramework=false to a .NET CLI command, such as dotnet build. Here's an example project file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <CheckEolTargetFramework>false</CheckEolTargetFramework>
  </PropertyGroup>
</Project>

Here's an example .NET CLI command:

dotnet build /p:CheckEolTargetFramework=false

See also