Skip to content

Dependencies of Microsoft.ApplicationInsights.AspNetCore are out of date #2951

Open
@ericstj

Description

  • List of NuGet packages and version that you are using: Microsoft.ApplicationInsights.AspNetCore 2.22.0
  • Runtime version (e.g. net461, net48, netcoreapp2.1, netcoreapp3.1, etc. You can find this information from the *.csproj file): net8.0
  • Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.): Windows

Describe the bug

Referencing the latest Microsoft.ApplicationInsights.AspNetCore and restoring results in bringing in out-of-date, out-of-support packages. For example:
Microsoft.Extensions.Caching.Memory 1.0.0
System.Text.Encodings.Web 4.7.2
Microsoft.Extensions.Configuration.Json 3.1.0
Microsoft.Extensions.DependencyInjection 2.1.1
System.Diagnostics.DiagnosticSource 5.0.0

There's a seemingly arbitrary mix of package versions referenced from various different .NET major versions - all of which are out of support. Some of these will be dropped in favor of framework assemblies on newer frameworks, but many remain. It would be better if this project took a consistent approach to dependency versions. Ideally it would use CPM to manage dependencies and it could choose to unify those to a specific LTS release of .NET that is still in support. That way folks installing this package into new projects don't immediately need to update the dependencies it brings.

To Reproduce

Create a self-contained project using the template of your choice, apply the minimum required code to result in the issue you're observing.

appInsightsAsp.zip

For Immediate Support

For immediate support relating to the Application Insights .NET SDK we encourage you to file an Azure Support Request with Microsoft Azure instead of filing a GitHub Issue in this repository.
You can do so by going online to the Azure portal and submitting a support request. Access to subscription management and billing support is included with your Microsoft Azure subscription, and technical support is provided through one of the Azure Support Plans. For step-by-step guidance for the Azure portal, see How to create an Azure support request. Alternatively, you can create and manage your support tickets programmatically using the Azure Support ticket REST API

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions