-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Update target frameworks and package dependencies #180
Update target frameworks and package dependencies #180
Conversation
* 4.0 and 4.5 are out of support by now, 4.6.2 is the oldest version that is stil supported * see https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-framework * also 4.6.2 is required to update the dependecies to the latest versions
* both .NET Core 3.1 and .NET 5 are out of support since a while * .NET 6 is currently still supported * it is also required for updating to NUnit 4
* breaking changes in NUnit 4 require many mechnical replacements of "Assert." by "ClassicAssert."
Hi @janusw, thanks for that. Agreed on dropping out of support .NET versions. [EDIT : this is done] I was wondering why we use |
@janusw I've changed the tests assertions using the NUnit.Analyzer. |
Cool, thanks! I also thought about doing the full migration, but was a bit put off by the effort. I didn't know there was a tool to do it automatically :) |
I could certainly add a Btw, one could make the same argument with .NET Framework: We could add And also, what about the .NET Standard targets?
Do we still need them? All of them? Any of them? 🤔 |
It's not necessary, but indicates that the library has been tested against those newer SDKs.
AFAIK, there are no big breaking change. I would suggest dropping .NET Framework support for netstandard20, but leaving at least net462 (ie: netstandard20 on .NET Framework SDK) ensures that it will still work.
|
Sounds reasonable, and basically matches the recommendation in https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-1-0#which-net-standard-version-to-target:
I'm not sure if 2.1 is needed for Unity in any way, but in any case it doesn't hurt to keep it in. So, I will remove |
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.
Looks good, thanks !
Just added 2 comments for testing also against net8.0
And sorry I didn't clearly answer on that net8.0 case @janusw. Supporting newer SDKs is always good (even if not required). Now that we have frequent releases of .NET we have to keep up the best we can. Ok with that ? |
@janusw thanks for all this. |
Yes, I see a green merge button, so it seems I do have the necessary permissions (thanks for that).
Actually I'm a fan of a detailed commit history, therefore I dislike squashing and prefer merge commits. 😆 So maybe you just do it your way for now 😉 |
Your commits are clean and well named and address one thing at a time so merge is fine ! |
This PR updates the target frameworks and package dependencies to an acceptable state.
Concerning the target framworks:
References:
Concerning the package dependencies:
All package updates only affect the test project (GeoJSON.Net.Tests), but not the library (GeoJSON.Net) itself.
@xfischer Does this look good to you, or do you have any objections?