Skip to content

Commit 443b2ff

Browse files
xiaomi7732Copilot
andauthored
Clamp Microsoft.ApplicationInsights to < 3.0.0 to prevent runtime crash (#390)
Add upper version bound [2.23.0, 3.0.0) on Microsoft.ApplicationInsights and Microsoft.ApplicationInsights.AspNetCore packages to prevent TypeLoadException when users combine this library with Application Insights SDK 3.0.0, which removed ITelemetryInitializer. Fixes #389 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f6fc9ee commit 443b2ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<ItemGroup>
77
<PackageVersion Include="KubernetesClient" Version="17.0.14" />
88
<PackageVersion Include="MicroBuild.Core" Version="0.3.0" />
9-
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.23.0" />
10-
<PackageVersion Include="Microsoft.ApplicationInsights" Version="2.23.0" />
9+
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="[2.23.0, 3.0.0)" />
10+
<PackageVersion Include="Microsoft.ApplicationInsights" Version="[2.23.0, 3.0.0)" />
1111
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="9.0.2" />
1212
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
1313
<PackageVersion Include="Microsoft.Extensions.DiagnosticAdapter" Version="3.1.32" />

0 commit comments

Comments
 (0)