-
Notifications
You must be signed in to change notification settings - Fork 295
Remove netstandard2.0 target framework from core packages #3091
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the netstandard2.0 target framework from three Application Insights packages: Microsoft.ApplicationInsights, Microsoft.ApplicationInsights.AspNetCore, and Microsoft.ApplicationInsights.WorkerService. This simplifies the build targets and indicates these packages will no longer support .NET Standard 2.0, requiring users to target .NET 8.0 or higher (or .NET Framework 4.6.2 for the base package).
Changes:
- Removed
netstandard2.0from target frameworks in three project files - Cleaned up conditional compilation directives and build configurations that referenced
netstandard2.0 - Updated CHANGELOG.md to document the removal
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| NETCORE/src/Microsoft.ApplicationInsights.WorkerService/Microsoft.ApplicationInsights.WorkerService.csproj | Removed netstandard2.0 from TargetFrameworks, now targets only net10.0, net9.0, and net8.0 |
| NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Microsoft.ApplicationInsights.AspNetCore.csproj | Removed netstandard2.0 from TargetFrameworks and removed the conditional TargetFrameworks for non-Windows OS, also removed the Release configuration PropertyGroup specific to netstandard2.0 |
| BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj | Removed netstandard2.0 from both Windows and non-Windows TargetFrameworks, removed commented-out PackageReference, and updated ItemGroup condition to exclude only net8.0/9.0/10.0 |
| CHANGELOG.md | Added entry documenting the removal of netstandard2.0 target framework from the three packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Removes netstandard2.0 from the following packages:
These packages now target net8.0, net9.0, net10.0 (and net462 for the core SDK).