From b5b02746c757144dd23b8078b89a842a1170aafe Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Wed, 13 Dec 2023 00:52:16 -0800 Subject: [PATCH] Add NAPS2.Escl.Server as an sdk project --- NAPS2.Escl.Server/NAPS2.Escl.Server.csproj | 7 +++++++ NAPS2.Sdk.Samples/NetworkSharingSample.cs | 4 ++-- NAPS2.Sdk/README.md | 2 +- NAPS2.Tools/Project/ProjectHelper.cs | 1 + 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/NAPS2.Escl.Server/NAPS2.Escl.Server.csproj b/NAPS2.Escl.Server/NAPS2.Escl.Server.csproj index 0a53b41cff..b7448ba460 100644 --- a/NAPS2.Escl.Server/NAPS2.Escl.Server.csproj +++ b/NAPS2.Escl.Server/NAPS2.Escl.Server.csproj @@ -5,8 +5,15 @@ enable enable 12 + + NAPS2.Escl.Server + NAPS2.Escl.Server + ESCL server for NAPS2.Sdk. + naps2 escl + + diff --git a/NAPS2.Sdk.Samples/NetworkSharingSample.cs b/NAPS2.Sdk.Samples/NetworkSharingSample.cs index b83446105c..9e12072924 100644 --- a/NAPS2.Sdk.Samples/NetworkSharingSample.cs +++ b/NAPS2.Sdk.Samples/NetworkSharingSample.cs @@ -39,8 +39,8 @@ public static async Task Client() // Find the shared device using Driver.Escl ScanDevice device = (await controller.GetDeviceList(Driver.Escl)).First(); - // Set up options using Driver.Escl - var options = new ScanOptions { Device = device, Driver = Driver.Escl }; + // Set up options + var options = new ScanOptions { Device = device }; // Do the scan await foreach (var image in controller.Scan(options)) diff --git a/NAPS2.Sdk/README.md b/NAPS2.Sdk/README.md index 1ec150dee2..9ed7d61910 100644 --- a/NAPS2.Sdk/README.md +++ b/NAPS2.Sdk/README.md @@ -32,7 +32,7 @@ NAPS2.Sdk is modular, and depending on your needs you may have to reference a di - For [using SANE drivers]() on Mac. (Linux has them pre-installed, and Windows isn't supported.) - **[NAPS2.Tesseract.Binaries](https://www.nuget.org/packages/NAPS2.Tesseract.Binaries/)** - For [running OCR](). (You can also use a separate Tesseract installation if you like.) -- **[NAPS2.Escl.Server](https://www.nuget.org/packages/NAPS2.Tesseract.Binaries/)** +- **[NAPS2.Escl.Server](https://www.nuget.org/packages/NAPS2.Escl.Server/)** - For [sharing scanners](https://github.com/cyanfish/naps2/blob/master/NAPS2.Sdk.Samples/NetworkSharingSample.cs) across the local network. ## Usage diff --git a/NAPS2.Tools/Project/ProjectHelper.cs b/NAPS2.Tools/Project/ProjectHelper.cs index 85820f082e..91ae10ceae 100644 --- a/NAPS2.Tools/Project/ProjectHelper.cs +++ b/NAPS2.Tools/Project/ProjectHelper.cs @@ -48,6 +48,7 @@ public static string[] GetSdkProjects() => new[] "NAPS2.Sdk", "NAPS2.Sdk.Worker.Win32", "NAPS2.Escl", + "NAPS2.Escl.Server", "NAPS2.Internals", "NAPS2.Images", "NAPS2.Images.Gdi",