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.

Revisions

  1. codedeep79 revised this gist Jan 6, 2025. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    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 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.

    ```xml
    <TargetFramework>net8.0</TargetFramework>
    <TargetFramework>net7.0</TargetFramework>
    ```


  2. codedeep79 created this gist Jan 6, 2025.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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 8.0.
    + Open the `.csproj` file.
    + Find the `<TargetFramework>` element.
    + Change the value to `net7.0 or a lower` version.

    ```xml
    <TargetFramework>net8.0</TargetFramework>
    ```