Skip to content

Commit df09e20

Browse files
author
Kees van Spelde
committed
Set to always copy the dll
1 parent 6c91f06 commit df09e20

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

TesseractOCR.Net45Tests/TesseractOCR.Net48Tests.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@
188188
<None Include="..\TesseractOCR.Tests\tessdata\pdf.ttf" Link="tessdata\pdf.ttf">
189189
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
190190
</None>
191+
<None Update="x64\leptonica-1.85.0.dll">
192+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
193+
</None>
194+
<None Update="x64\tesseract54.dll">
195+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
196+
</None>
191197
<None Update="x86\leptonica-1.83.1.dll">
192198
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
193199
</None>
@@ -219,6 +225,9 @@
219225
<None Update="x64\tesseract53.dll">
220226
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
221227
</None>
228+
<None Update="x86\leptonica-1.85.0.dll">
229+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
230+
</None>
222231
<None Update="x86\tesseract.exe">
223232
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
224233
</None>
@@ -228,6 +237,9 @@
228237
<None Update="x86\tesseract53.dll">
229238
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
230239
</None>
240+
<None Update="x86\tesseract54.dll">
241+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
242+
</None>
231243
</ItemGroup>
232244

233245
</Project>

TesseractOCR.NetCore31Tests/TesseractOCR.NetCore31Tests.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@
186186
<None Include="..\TesseractOCR.Tests\tessdata\pdf.ttf" Link="tessdata\pdf.ttf">
187187
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
188188
</None>
189+
<None Update="x64\leptonica-1.85.0.dll">
190+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
191+
</None>
192+
<None Update="x64\tesseract54.dll">
193+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
194+
</None>
189195
<None Update="x86\leptonica-1.83.1.dll">
190196
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
191197
</None>
@@ -223,6 +229,9 @@
223229
<None Update="x86\leptonica-1.83.0.dll">
224230
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
225231
</None>
232+
<None Update="x86\leptonica-1.85.0.dll">
233+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
234+
</None>
226235
<None Update="x86\tesseract.exe">
227236
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
228237
</None>
@@ -232,6 +241,9 @@
232241
<None Update="x86\tesseract53.dll">
233242
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
234243
</None>
244+
<None Update="x86\tesseract54.dll">
245+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
246+
</None>
235247
</ItemGroup>
236248

237249
</Project>

TesseractOCR.Tests/BaseApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ namespace Tesseract.Tests
99
public class BaseApiTests : TesseractTestBase
1010
{
1111
[TestMethod]
12-
public void GetVersion_Is530()
12+
public void GetVersion_Is540()
1313
{
1414
using var engine = CreateEngine();
1515
var version = engine.Version;
16-
Assert.IsTrue(version.StartsWith("5.3.2"));
16+
Assert.IsTrue(version.StartsWith("5.4.1"));
1717
}
1818

1919
[TestMethod]

TesseractOCR/TesseractOCR.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ which support the legacy engine, for example those from the tessdata repository.
6767
</ItemGroup>
6868

6969
<ItemGroup>
70+
<Content Update="x64\leptonica-1.85.0.dll">
71+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
72+
</Content>
7073
<Content Update="x64\tesseract.exe">
7174
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7275
</Content>
@@ -79,6 +82,12 @@ which support the legacy engine, for example those from the tessdata repository.
7982
<Content Update="x64\tesseract53.dll">
8083
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8184
</Content>
85+
<Content Update="x64\tesseract54.dll">
86+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
87+
</Content>
88+
<Content Update="x86\leptonica-1.85.0.dll">
89+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
90+
</Content>
8291
<Content Update="x86\tesseract.exe">
8392
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8493
</Content>
@@ -91,5 +100,8 @@ which support the legacy engine, for example those from the tessdata repository.
91100
<Content Update="x86\tesseract53.dll">
92101
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
93102
</Content>
103+
<Content Update="x86\tesseract54.dll">
104+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
105+
</Content>
94106
</ItemGroup>
95107
</Project>

0 commit comments

Comments
 (0)