-
Notifications
You must be signed in to change notification settings - Fork 756
.NET 8 support #4511
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
.NET 8 support #4511
Conversation
|
BinarySerialization is no longer supported in .NET 8. due to security concerns Do we make it conditional, or shall we remove it from NUnit4 completely? |
|
@ashishdawale20 you need to update |
Last I checked (also on mobile), this is only used for one constraint so it might mean dropping support for that constraint on non-netfx builds. I'm ok with this myself. EDIT: Though perhaps within this PR we just wrap the test within an |
Thank you @manfred-brands - this is done, i will check why github action is failing to setup .net |
|
|
|
@ashishdawale20 Have you compiled the source locally? There are two compile errors due to obsolete code. |
Yes @manfred-brands , it works for me locally |
|
@stevenaw Which constraint is it impacting? |
BinarySerializableConstraint It was already obsolete in .NET6.0, but it got physically removed in .NET8.0, breaking the tests. |
Imho, remove it completely. The 4.0 is the good one for breaking changes. |
@OsirisTerje - i have created this PR for doc update : nunit/docs#814 |
|
The build seems to suffer from the .NET 8.0 RC2 dotnet tool bug](dotnet/sdk#35989) |
2d9c4df to
0033bbc
Compare
'dotnet cake' becomes 'dotnet tool run dotnet-cake' Drop net7.0 runtime testing We only create a .NET6.0 binary.
22ed9b2 to
0d92606
Compare
|
@OsirisTerje Updated to final release of .NET8.0 SDK |
OsirisTerje
left a comment
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.
Directory.Build.Props: The runtimeframeworks is defined there, and missing net8, but includes net7. Since testing for net7 is replaced with net8 we could remove net7.
It contains: |
|
@manfred-brands Nice. But, should we then remove .net 7 from wherever that is used? |
OsirisTerje
left a comment
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.
Awesome!
I just removed it from the places you found. |
|
We'll then push out a beta.2 , but I was planning for doing a non-beta release of 4 by the end of the week. |



Changes required to support .NET 8.0 #4503

Work in progress, .NET8.0 RC should be changed when a stable version is released and few tests are are failing will take a look at that as well.