Skip to content
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

Added some nullability annotations to v4 #1323

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

ptasev
Copy link

@ptasev ptasev commented Oct 18, 2023

In my project I treat warnings as errors, and when using the source generator from System.Text.Json for a type that has UnitsNet properties, it was generating code that had nullability warnings on BaseDimensions and BaseUnits for operator ==.

Since there's no good way to suppress this warning only for source generated code, the only way to fix this, short of disabling the warnings-as-errors across my whole project, is to add these annotations.

@tmilnthorp
Copy link
Collaborator

@angularsen looks like a NuGet failure in ADO.

We should merge this into main also.

@angularsen angularsen closed this Nov 7, 2023
@angularsen angularsen reopened this Nov 7, 2023
@angularsen
Copy link
Owner

Trying to get v4 branch to build on ADO.

@angularsen angularsen closed this Nov 7, 2023
@angularsen angularsen reopened this Nov 7, 2023
@angularsen angularsen merged commit 50ee964 into angularsen:release/v4 Nov 7, 2023
1 check passed
@angularsen
Copy link
Owner

@ptasev Merged, sorry this took so long. It fell off my radar.

The v4 branch has not been built in a long time and required some tweaks in the pipeline, but hopefully a nuget should be out shortly.

Release UnitsNet/4.152.0 · angularsen/UnitsNet

@tmilnthorp If you want to, see if we can merge this into master. I assume there will be some conflicts to sort out and I don't have the time to attempt that right now.

@ptasev ptasev deleted the pt/nrt-fix branch November 7, 2023 23:59
@angularsen
Copy link
Owner

Had to fix one more thing, but the nuget 4.152.0 is finally out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants