Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop .NET 6 Support #2432

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Drop .NET 6 Support #2432

wants to merge 4 commits into from

Conversation

seantleonard
Copy link
Contributor

@seantleonard seantleonard commented Oct 19, 2024

Why make this change?

  • .NET 6 is going out of support in a few weeks. DAB doesn't need to maintain support as it's published binaries are self-contained, meaning that dotnet runtime is included.

What is this change?

  • Removes .NET6 references from .csproj files for target framework.
  • Removes .NET6 specific code in authN handlers
  • Removes .NET6 sdk install in pipeline config
  • Removes .NET6 dependency section from src/Directory.Packages.props
  • CI/CD pipelines now complete quicker, as removing .NET6 shaves off about ~12-15minutes per test run. (Config file creation + integration tests)

How was this tested?

  • Integration Tests
  • Unit Tests

@seantleonard
Copy link
Contributor Author

/azp run

@sezal98
Copy link
Contributor

sezal98 commented Oct 22, 2024

Should we make changes in the scripts as well? FileName : scripts.publish.ps1
$dotnetTargetFrameworks = "net6.0", "net8.0"

@@ -281,7 +281,6 @@ private void InitializeObjects()
{
_options = new()
{
#if NET8_0_OR_GREATER
// ObjectConverter behavior different in .NET8 most likely due to
// .NET7 breaking change:
// - https://learn.microsoft.com/dotnet/core/compatibility/serialization/7.0/polymorphic-serialization#affected-apis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should modify the comments according to the new changes

@@ -42,25 +41,6 @@ public SimulatorAuthenticationHandler(
: base(options, logger, encoder)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed ?

// ISystemClock is obsolete in .NET 8.0 and later
// https://learn.microsoft.com/dotnet/core/compatibility/aspnet-core/8.0/isystemclock-obsolete

Copy link
Contributor

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good initiative, we should check with @neeraj-sharma2592 with respect to dependencies on hosting before merging

@abhishekkumams
Copy link
Contributor

Good initiative, we should check with @neeraj-sharma2592 with respect to dependencies on hosting before merging

I'm in touch with Neeraj for the same. Will add update accordingly.

@abhishekkumams
Copy link
Contributor

Both create-manifest-file.ps1 and publish.ps1 file needs an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants