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

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

Open
ericstj opened this issue Jan 23, 2025 · 1 comment
Open
Labels

Comments

@ericstj
Copy link
Member

ericstj commented Jan 23, 2025

  • 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

@ericstj ericstj added the bug label Jan 23, 2025
@304NotModified
Copy link

304NotModified commented Jan 30, 2025

Related

#2919

#2923

#2912 (planned for 2.23, closed but not fixed?)

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

No branches or pull requests

2 participants