{
  "schemaVersion": "ebb.rule.v1",
  "id": "dotnet.runtime.end-of-support-8.0",
  "ecosystem": "dotnet",
  "purl": "pkg:generic/dotnet",
  "affectedVersions": "vers:semver/>=8.0.0|<8.1.0",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": ".NET 8 reaches end of support on 2026-11-10",
  "summary": ".NET 8 (Long Term Support) is scheduled to reach the end of its support on 2026-11-10, according to Microsoft's releases index. After that date Microsoft no longer ships security or quality fixes for it. The same line applies to the SDK that carries it, so a global.json pinning an SDK 8.0.x is reported too.",
  "replacement": ".NET 10 (LTS), or the newest supported .NET release",
  "deadline": "2026-11-10",
  "sources": [
    {
      "title": ".NET and .NET Core official support policy",
      "url": "https://dotnet.microsoft.com/platform/support/policy/dotnet-core",
      "accessedAt": "2026-10-18"
    },
    {
      "title": ".NET releases index (channel, support phase, end-of-life date)",
      "url": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json",
      "accessedAt": "2026-10-18"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-18",
    "reviewedAt": "2026-10-18",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Move the project files, global.json, CI images, and container base images to the same release line; a mix hides the old runtime.",
      "Read the breaking-changes list of each release between the old and new line before raising the target.",
      "This line is still supported today; the rule is a warning ahead of the announced date, so plan the move before it."
    ],
    "steps": [
      {
        "id": "raise-target-framework",
        "title": "Raise the target framework",
        "instructions": "Change the reported TargetFramework (or TargetFrameworks entry) from the 8.0 line to a line that will still be supported after 2026-11-10, for example net10.0.",
        "targets": "declaration"
      },
      {
        "id": "raise-sdk-pin",
        "title": "Raise the SDK pin",
        "instructions": "Update the sdk version in global.json to an SDK of the same supported line, or remove the pin if the repository does not need one.",
        "targets": "all"
      },
      {
        "id": "align-ci-and-images",
        "title": "Align CI and container images",
        "instructions": "Update setup-dotnet versions in CI and the mcr.microsoft.com/dotnet images in Dockerfiles to the new line.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "dotnet --list-sdks && dotnet --list-runtimes",
        "purpose": "Confirm the SDK and runtime in use are the intended supported release."
      },
      {
        "command": "dotnet build && dotnet test",
        "purpose": "Build and test every project on the new target."
      }
    ]
  }
}
