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

Update Microsoft.Extensions.Caching.Memory dependency

Open ColeMiller1 opened this issue 1 year ago • 2 comments

We were looking at the transitive dependencies of Microsoft.ApplicationInsights.AspNetCore (v2.22.0). The PerfCounterCollector package utilizes Microsoft.Extensions.Caching.Memory (v1.0.0). This version was released in 2016. Could the reference be updated? We target .NET 8.0 so while I do not believe we would be affected by an outdated dependency, it does look like the most recent version of Microsoft.Extensions.Caching.Memory (v9.0.0) still supports the .NET 2.0 standard.

https://github.com/microsoft/ApplicationInsights-dotnet/blob/e34286b4c8175d7ea47f9227c5b981d661cac470/WEB/Src/PerformanceCollector/PerformanceCollector/Perf.csproj#L30-L33

ColeMiller1 avatar Nov 26 '24 21:11 ColeMiller1

Not only that but I ran into a jam this morning where I was getting a TypeLoadException due to this dependency issue:

Image

matt1munich avatar Dec 02 '24 17:12 matt1munich

See also https://github.com/microsoft/ApplicationInsights-dotnet/issues/2912, which is on the next milestone (2.23)

304NotModified avatar Jan 22 '25 17:01 304NotModified