Uh oh!
There was an error while loading. Please reload this page.
Add FileAttributes.None - #89130
Conversation
ghost
commented
Jul 18, 2023
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
ghost
commented
Jul 18, 2023
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFix #83125
|
stephentoub
commented
Jul 18, 2023
Thanks |
| json = JsonSerializer.Serialize((FileAttributes)(-1), options); | ||
| Assert.Equal(@"-1", json); |
There was a problem hiding this comment.
I think the previous test was validating that an unknown value is serialized as a number.
FileAttributes.Compressed & FileAttributes.Device is now None. So, the test fails on net8 but succeeds on net462. I replaced the value with an unknown value (-1).
adamsitnik
left a comment
There was a problem hiding this comment.
LGTM, thank you for your contribution @meziantou !
adamsitnik
commented
Jul 31, 2023
@meziantou could you please sync your branch with upstream? It should get the CI green |
adamsitnik
commented
Jul 31, 2023
@jeffhandley I request for the permission to merge (it's nice to have, the risk is very low) |
meziantou
commented
Jul 31, 2023
@adamsitnik the build is still red after synching the branch, but there are less errors. |
adamsitnik
commented
Aug 1, 2023
jeffhandley
left a comment
There was a problem hiding this comment.
I approve of merging this in for RC1. It's a nice value-add with low risk.

Fix#83125