Target Frameworks / Late in the year 2023. #637
Replies: 2 comments
-
I like the idea. We'll be losing compatibility, anyone targeting an older framework won't be able to update to the latest version of the library... But I think it's the way to go. Note you should also search for |
Beta Was this translation helpful? Give feedback.
-
This has been completed in version 23.0.0 Now the library and all its extensions target net462, netstandard2.0 and/or net6.0 as the minimum target framework. Older framework support has been deprecated. More information here This also resulted in a lot of code clean-up, unit test separation, removal of preprocessor directives, etc. Note that |
Beta Was this translation helpful? Give feedback.
-
I was working an a possible PR.
But wanted to discuss before doing the work.
The TargetFramework(s) .. are a little "all over the place"......
I understand this "happens" with the long life of a .sln.
My primary concern (today) is :
Audit.NET.PostgreSql.csproj
does not have net6.0 specified.
see:
https://github.com/thepirat000/Audit.NET/blob/master/src/Audit.NET.PostgreSql/Audit.NET.PostgreSql.csproj#L7
But I see some discrepencies elsewhere.
IMHO, a late (year) 2023 list of appropriate target-frameworks is:
`
`
based on:
https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
dot-net-CORE:
net6.0 because it is the latest LTS version. (and what my company writes to)
and net7.0 because it is the current latest/greatest STS version...even though net8.0 is knocking on the door.
The "debatables" for dot-net CORE.
netstandard1.3 (or anything pre 2.0)
and
netcoreapp3.1 (but my opinion on 3.1 is now "remove it")
and
Dotnet-FRAMEWORK
https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-framework
.NET Framework 4.6.2 | Aug 2, 2016 | Jan 12, 2027
anything "pre" 4.6.2 should be removed.
Let me know your thoughts before I take on too-little/too-less.
I can do the "minimal" (add net6.0 to the postgres csproj) .. or do a little more.
Note, in the below, the isolated "8" or "7" (etc, etc) numbers after ".csproj" are the line numbers where the TargetFrameworks are defined in the csproj.
`
`
Beta Was this translation helpful? Give feedback.
All reactions