Skip to content

Instantly share code, notes, and snippets.

  • Save codedeep79/f9e2a4c40f3be9232106f962ebbb3ca0 to your computer and use it in GitHub Desktop.
Save codedeep79/f9e2a4c40f3be9232106f962ebbb3ca0 to your computer and use it in GitHub Desktop.
The current Visual Studio version does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use Visual Studio version 17.8 or higher

The error message NETSDK1209 indicates that your current version of Visual Studio does not support targeting .NET 8.0:

  • Update the .csproj file to target a supported version of .NET, such as .NET 7.0.
    • Open the .csproj file.

    • Find the <TargetFramework> element.

    • Change the value to net7.0 or a lower version.

      <TargetFramework>net7.0</TargetFramework>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment