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>
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.