angularsen / UnitsNet

Makes life working with units of measurement just a little bit better.
https://www.nuget.org/packages/UnitsNet/
MIT No Attribution
2.65k stars 382 forks source link

Quantiy SpecificFuelConsumption units symbols contain invalid characters #1417

Closed josefprinz closed 1 month ago

josefprinz commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior (just an example):

  1. Add nuget UnitsNet 4.9.0 to a .NET 4.0 project
  2. Build using Visual Studio 2017 Community v15.9.2
  3. See error: "foo"

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

angularsen commented 2 months ago

That is an ancient version, try upgrading the nuget. The latest 4.x is https://www.nuget.org/packages/UnitsNet/4.152.0.

Beyond that, we don't really support older major versions unless there is something very wrong and easy to fix.

The latest major versions are 5.x and pre-release of 6.x. https://www.nuget.org/packages/UnitsNet/5.57.0 https://www.nuget.org/packages/UnitsNet/6.0.0-pre011

angularsen commented 2 months ago

Also, netstandard2.0 is required for 5.x so it would require minimum .NET 4.6.2. https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.