Alternatives to deprecated Microsoft.AspNetCore packages

Manjakkudi, Raghavan 30 Reputation points
2024-09-04T12:08:39.4466667+00:00

Hello,

We have a requirement to replace the following deprecated packages

Microsoft.AspNetCore Version=2.2.0

Microsoft.AspNetCore.Authentication.JwtBearer Version=2.1.30

Microsoft.AspNetCore.Mvc Version=2.2.0 

Microsoft.AspNetCore.ResponseCompression Version=2.2.0

Microsoft.AspNetCore.Server.HttpSys Version=2.2.6

Microsoft.AspNetCore.Server.IISIntegration Version=2.2.1

The class libraries referencing these above packages need to target .Net Standard 2.0 to support legacy applications.

Upgrading the class libraries to the latest .NET 8 version is not an option for our scenario.

Please suggest if there are any viable alternatives.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,798 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 questions
{count} votes

Accepted answer
  1. Brando Zhang-MSFT 3,606 Reputation points Microsoft Vendor
    2024-09-05T01:52:08.6266667+00:00

    Hi @Manjakkudi, Raghavan,

    As the AgaveJoe said, the .net core 2.2 is reached end of life which you couldn't update the package and project.

    To solve this issue, you need update the project to the .net 8. There is a tool named .NET Upgrade Assistant which provide by the Micrsoft could upgrade the old version to the newest one.

    But .net core 2.2 is totally different than the .net 8, you may modify a lot of your current codes.

    Best Regards,

    Brando


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,161 Reputation points
    2024-09-06T16:08:34.6+00:00

    these package features were merged into .net runtime and not separate packages anymore. there really is no alternative.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.