-
Notifications
You must be signed in to change notification settings - Fork 287
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
Remove target frameworks net452;net46; because they are no longer sup… #2854
base: main
Are you sure you want to change the base?
Conversation
…ported microsoft#2850 use frameworkreference for Microsoft.AspNetCore.App instead of icrosoft.AspNetCore.* nuget packages, because they are now deprecated and end of life.
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.
Although I would love to see this change, we have a requirement to continue supporting these frameworks for same legacy systems.
Thank you for you comment, @TimothyMothra. |
@TimothyMothra I'd suggest a major version release across the board (3.0). There is a huge difference between AspNetCore 2.x/3.x and the latest versions under NET6/8 in terms of what nugets to reference vs using Framework dependencies... Everything prior NET6 is long out of LTS anyways, so, why not just clean up the mess and publish a clean version for the new .NET 6/8 versions? |
…net6.0 change conditional compilation expressions #if NET452 to #if NETFRAMEWORK microsoft#2850
…e specifics in behavior coded in classes in project In TelemetryChannel.ApplicationFolderProvider add #if NETFRAMEWORK in IsWindowsOperatingSystem method. microsoft#2850
In Microsoft.ApplicationInsights project, there are a lot of comments like:
And in The question is: If this implementation should be used in all framework versions, then this condition should be changed. |
@antymon4o I believe the conditional in RichPayloadEventSource.cs is correct. That's because support for anonymous types in EventSource events was introduced in .NET 4.6. There's a comment starting on line 393 of that file explaining it. |
@TimothyMothra can you please have another look at the PR and tell if the support for the deprecated and LTS out frameworks is critical. |
Sorry, there are no plans for a 3.0 Application Insights! However, dropping target framework can be done without major version bump! I am not suggesting we merge this PR and do normal release - I'll defer to @TimothyMothra to decide if this is acceptable or not. It maybe worth exploring/fixing |
It is possible to fix only ApplicationInsights.AspNetCore package, but it would be a somewhat partial fix. |
…ported #2850
use frameworkreference for Microsoft.AspNetCore.App instead of icrosoft.AspNetCore.* nuget packages, because they are now deprecated and end of life.
Fix Issue #2850.
Changes
Remove target frameworks net452;net46; and netcoreapp3.1; because they are no longer supported.
Affected projects are: DependencyCollector, TelemetryChannel, Perf, WindowsServer, Microsoft.ApplicationInsights.
Use frameworkreference for Microsoft.AspNetCore.App instead of icrosoft.AspNetCore.* nuget packages, because they are now deprecated and end of life.
Microsoft.ApplicationInsights.AspNetCore targets net6 to enable framework reference to Microsoft.AspNetCore.App.
Checklist
The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.
Notes for authors: