NETSDK1013: The TargetFramework value was not recognized
This article applies to: ✔️ .NET Core 3.1.100 SDK and later versions
The SDK tries to parse the values provided in the project file for <TargetFramework>
or <TargetFrameworks>
into a well known value. If the value is not recognized, the TargetFrameworkIdentifier
or TargetFrameworkVersion
value might be set to an empty string or Unsupported
.
To resolve this, check the spelling of your TargetFramework
value from the list of supported frameworks.
You can also set the TargetFrameworkIdentifier
and TargetFrameworkVersion
properties directly in your project file.
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == ''">
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
<TargetFrameworkVersion>8.0</TargetFrameworkVersion>
</PropertyGroup>
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.