UsbDiscoverer not available in .NET Core

E Efkan YILMAZ 3 years 5 months ago
15 2 0

Hi!
I have a problem.
In the current Nuget Zebra.Printer.SDK (2.15.2634) is not providing
UsbDiscoverer
and
DiscoveredPrinterDriver
and
DiscoveredUsbPrinter
in
try
{
foreach (DiscoveredPrinterDriver printer in UsbDiscoverer.GetZebraDriverPrinters())
{
Console.WriteLine(printer);
}
foreach (DiscoveredUsbPrinter usbPrinter in UsbDiscoverer.GetZebraUsbPrinters(new ZebraPrinterFilter()))
{
Console.WriteLine(usbPrinter);
}
}
catch (ConnectionException e)
{
Console.WriteLine($"Error discovering local printers: {e.Message}");
}
Please fix as soon as possible.
Best regards
Martin

Please Register or Login to post a reply

2 Replies

M Martin Weihrauch

Thank you, but this package does not seem to work with .NET 5?
I get this message: Package Zebra.Printer.Card.SDK was restored using .NET 4.7 instead of project target...

F Flote Fuertes

install this using package manager console Install-Package Zebra.Printer.Card.SDK -Version 2.15.2634

CONTACT
Can’t find what you’re looking for?