0 votes
by (150 points)

The NuGet package Rebex.Terminal.SerialPort (v7.0.8943) has a dependency on System.IO.Ports.

For every framework except net8.0, a stable version of System.IO.Ports is referenced.

However, for net8.0 specifically, a pre-release version 8.0.0-preview.4.24266.19 is used (ref. https://www.nuget.org/packages/Rebex.Terminal.SerialPort/7.0.8943#dependencies-body-tab)

When a .NET 8 project uses Rebex.Terminal.SerialPort, this leads to warnings similar to:

Warning NU1603 : Rebex.Terminal.SerialPort 7.0.8943 depends on System.IO.Ports (>= 8.0.0-preview.4.24266.19) but System.IO.Ports 8.0.0-preview.4.24266.19 was not found. An approximate best match of System.IO.Ports 8.0.0-preview.5.23280.8 was resolved.

Is there a good reason for this situation? And could a future releases of the SerialPort package start referencing System.IO.Ports v8.0.0 (stable) instead?

1 Answer

0 votes
by (71.9k points)
selected by
 
Best answer

Thank you for reporting this. It seems to be a mistake.
We will fix it in the next release.
If you need fixed version sooner, please let us know.

by (150 points)
That's good to hear, thank you! Will be looking forward to the next release.
There's no need for a quick-fix; this can be worked around for now, by referencing `System.IO.Ports` 8.0.0 from consuming projects, overriding the unstable version.
...