-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add FileAttributes.None #89130
Add FileAttributes.None #89130
Conversation
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. |
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFix #83125
|
Thanks |
d6844fc
to
e0cb740
Compare
json = JsonSerializer.Serialize((FileAttributes)(-1), options); | ||
Assert.Equal(@"-1", json); |
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.
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).
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.
LGTM, thank you for your contribution @meziantou !
@meziantou could you please sync your branch with upstream? It should get the CI green |
@jeffhandley I request for the permission to merge (it's nice to have, the risk is very low) |
@adamsitnik the build is still red after synching the branch, but there are less errors. |
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.
I approve of merging this in for RC1. It's a nice value-add with low risk.
Fix #83125