ApplicationInsights-dotnet icon indicating copy to clipboard operation
ApplicationInsights-dotnet copied to clipboard

Dependencies to unsupported and end of life nuget packages and frameworks

Open antymon4o opened this issue 1 year ago • 2 comments

Application Insights projects target frameworks net452 and net46 that are now not supported any more. List of currently supported framework versions can be seen at: https://dotnet.microsoft.com/en-us/learn/dotnet/what-is-dotnet-framework.

Additionally, the project Microsoft.ApplicationInsights.AspNetCore has a dependency on packages Microsoft.AspNetCore.Http and Microsoft.AspNetCore.Hosting that are deprecated. Not only these packages are deprecated, but the packages that these packages depend are also deprecated. This brings the implication that when some project depends on Microsoft.ApplicationInsights.AspNetCore version 2.22.0, then this project also gets the dependencies to packages that are deprecated and are no longer maintained.

The proposed solution for the first issue is to remove the unsupported targeted frameworks. For the deprecated AspNetCore packages, the proposal is to migrate the reference from nuget package to framework reference. This also requires a pop-up in the targeted framework from netstandard2.0 to net6.0.

antymon4o avatar Feb 28 '24 10:02 antymon4o

Totally agree, but this is probably a duplicate of #2811

MichaCo avatar Mar 12 '24 14:03 MichaCo

Yes, it seems so. I have already proposed a solution for these issues. The PR is waiting to be reviewed. I hope someone from the team will be able to look at it and after if some tunings are required, the issues can be resolved.

antymon4o avatar Mar 12 '24 15:03 antymon4o