From 208b6b5bfe7f1e606cb72d72c4a3543a85dd21d4 Mon Sep 17 00:00:00 2001 From: Rajkumar Rangaraj Date: Fri, 13 Mar 2026 13:58:17 -0700 Subject: [PATCH 1/2] Add netstandard2.0 target framework to Microsoft.ApplicationInsights --- .../Microsoft.ApplicationInsights.csproj | 8 ++++---- BreakingChanges.md | 3 ++- CHANGELOG.md | 1 + Directory.Build.props | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj b/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj index 6649471f8..b53601344 100644 --- a/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj +++ b/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj @@ -4,8 +4,8 @@ Microsoft.ApplicationInsights Microsoft.ApplicationInsights - net10.0;net9.0;net8.0;net462 - net8.0;net9.0;net10.0 + net10.0;net9.0;net8.0;netstandard2.0;net462 + net8.0;net9.0;net10.0;netstandard2.0 9.0 @@ -28,12 +28,12 @@ - + All - + diff --git a/BreakingChanges.md b/BreakingChanges.md index fa21b85ec..1eb2c6f4d 100644 --- a/BreakingChanges.md +++ b/BreakingChanges.md @@ -372,8 +372,9 @@ Please see our [migration guide](MigrationGuidance.md#sampling) for detailed gui ### Target Framework Changes - **2.x**: `net452`, `netstandard2.0` -- **3.x**: `net462`, `netstandard2.0` +- **3.x**: `net462`, `net8.0` - **Breaking**: Minimum .NET Framework version raised from **4.5.2** → **4.6.2** +- **Breaking**: `netstandard2.0` replaced with `net8.0` ## Migration Checklist diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb00b558..23fd2b905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased +- [Added `netstandard2.0` target framework to `Microsoft.ApplicationInsights` package to support customers with shared libraries targeting netstandard2.0.]() - [Fix `TelemetryClient.Context.Cloud.RoleName` set after construction now applies to all telemetry.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3129) - [Fix bug where Debug/Trace level logs from TrackTrace API were not emitted to Application Insights](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3121) - [Fix Track API calls to not mutate the passed in dictionary if it is readonly](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3119) diff --git a/Directory.Build.props b/Directory.Build.props index 54c02dbad..235afe5ad 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -89,7 +89,7 @@ True True - True + True