Update Microsoft.Extensions.Caching.Memory dependency
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
Not only that but I ran into a jam this morning where I was getting a TypeLoadException due to this dependency issue:
See also https://github.com/microsoft/ApplicationInsights-dotnet/issues/2912, which is on the next milestone (2.23)