Skip to content

Maintenance: Deprecate .NET 6 #749

@hjgraca

Description

@hjgraca

Summary

.NET 6 has been out of support since October 2024 and will be deprecated as a Lambda managed runtime on October 2025

Image

Why is this needed?

This allows us to keep moving forward with new language features and remove some of the checks we have to check if it is .NET 8 or greater.

Work:

  • Remove net6.0 from TargetFrameworks in Directory.build.props files in src/ and tests/ <TargetFrameworks>net6.0;net8.0</TargetFrameworks>
  • Remove all instances of code specific to net6 (#if NET6_0)
  • Remove #if NET8_0_OR_GREATER and delete the else (code specific to net60)
    example:
#if NET8_0_OR_GREATER
        // starting .NET 8 no option to change hash algorithm
        using var hashAlgorithm = MD5.Create();
#else <--- delete
        using var hashAlgorithm = HashAlgorithm.Create(_idempotencyOptions.HashFunction);
#endif

Which area does this relate to?

No response

Solution

No response

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codegood first issueGood for newcomersinternalMaintenance changes

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions