Skip to content

Commit

Permalink
Add NAPS2.Escl.Server as an sdk project
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Dec 13, 2023
1 parent 4181955 commit b5b0274
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions NAPS2.Escl.Server/NAPS2.Escl.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>

<Title>NAPS2.Escl.Server</Title>
<Product>NAPS2.Escl.Server</Product>
<Description>ESCL server for NAPS2.Sdk.</Description>
<PackageTags>naps2 escl</PackageTags>
</PropertyGroup>

<Import Project="..\NAPS2.Setup\targets\SdkPackageTargets.targets" />

<ItemGroup>
<PackageReference Include="EmbedIO" Version="3.5.2" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
Expand Down
4 changes: 2 additions & 2 deletions NAPS2.Sdk.Samples/NetworkSharingSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions NAPS2.Tools/Project/ProjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b5b0274

Please sign in to comment.