v5: Fix MolarFlow per-hour abbreviations#1683
Merged
angularsen merged 1 commit intoJul 17, 2026
Merged
Conversation
angularsen
marked this pull request as ready for review
July 17, 2026 17:03
Owner
Author
This was referenced Jul 20, 2026
mergify Bot
pushed a commit
to TekuSP/framework-dotnet
that referenced
this pull request
Jul 20, 2026
Bump UnitsNet and UnitsNet.NumberExtensions (#44) Updated [UnitsNet](https://github.com/angularsen/UnitsNet) from 5.75.0 to 5.75.1. <details> <summary>Release notes</summary> _Sourced from [UnitsNet's releases](https://github.com/angularsen/UnitsNet/releases)._ ## 5.75.1 ## What's Changed * Deprecating the Multiply/Divide methods for the Temperature by @lipchev in angularsen/UnitsNet#1589 * Making the methods from UnitMath that exist in System.Linq as [Obsolete] by @lipchev in angularsen/UnitsNet#1593 * Deprecating the Dimensions property in favor of QuantityInfo.BaseDimensions (v5) by @lipchev in angularsen/UnitsNet#1610 * v5: Fix MolarFlow per-hour abbreviations by @angularsen in angularsen/UnitsNet#1683 **Full Changelog**: angularsen/UnitsNet@UnitsNet/5.75.0...UnitsNet/5.75.1 Commits viewable in [compare view](angularsen/UnitsNet@UnitsNet/5.75.0...UnitsNet/5.75.1). </details> Updated [UnitsNet.NumberExtensions](https://github.com/angularsen/UnitsNet) from 5.75.0 to 5.75.1. <details> <summary>Release notes</summary> _Sourced from [UnitsNet.NumberExtensions's releases](https://github.com/angularsen/UnitsNet/releases)._ ## 5.75.1 ## What's Changed * Deprecating the Multiply/Divide methods for the Temperature by @lipchev in angularsen/UnitsNet#1589 * Making the methods from UnitMath that exist in System.Linq as [Obsolete] by @lipchev in angularsen/UnitsNet#1593 * Deprecating the Dimensions property in favor of QuantityInfo.BaseDimensions (v5) by @lipchev in angularsen/UnitsNet#1610 * v5: Fix MolarFlow per-hour abbreviations by @angularsen in angularsen/UnitsNet#1683 **Full Changelog**: angularsen/UnitsNet@UnitsNet/5.75.0...UnitsNet/5.75.1 Commits viewable in [compare view](angularsen/UnitsNet@UnitsNet/5.75.0...UnitsNet/5.75.1). </details> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
This was referenced Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Backport of #1682 for the v5 maintenance branch.
Issue #1663 reports that the generated abbreviations for MolarFlow per-hour units are shifted by one kilo prefix:
MolarFlowUnit.MolePerHourformats/parses askmol/hMolarFlowUnit.KilomolePerHourformats/parses askkmol/hThe root cause is that
MolePerHourhasPrefixes: [ "Kilo" ], but its base abbreviation inMolarFlow.jsonwas already written askmol/h. The prefix generator then prepended anotherkfor the generatedKilomolePerHourunit.Changes
MolePerHourabbreviation fromkmol/htomol/h.MolePerHour:mol/hKilomolePerHour:kmol/hValidation
dotnet run --project CodeGen -p:NuGetAudit=falsedotnet test UnitsNet.Tests -f net48 --filter "FullyQualifiedName~MolarFlowTests" -p:NuGetAudit=falsedotnet test UnitsNet.Tests -f net9.0 -p:NuGetAudit=falseNote: plain restore/codegen on this maintenance branch is currently blocked by an unrelated NuGet audit warning for
NuGet.Protocol6.12.1, so validation usedNuGetAudit=falseto avoid changing dependencies in this bugfix PR.Fixes #1663.