diff --git a/Demo-ASP.NET-Core/Demo-ASP.NET-Core.csproj b/Demo-ASP.NET-Core/Demo-ASP.NET-Core.csproj index 5aab18a..78a97e8 100644 --- a/Demo-ASP.NET-Core/Demo-ASP.NET-Core.csproj +++ b/Demo-ASP.NET-Core/Demo-ASP.NET-Core.csproj @@ -6,7 +6,7 @@ - + diff --git a/Demo-ImageMagick/Demo-ImageMagick.csproj b/Demo-ImageMagick/Demo-ImageMagick.csproj index 15f05cb..9bac0ab 100644 --- a/Demo-ImageMagick/Demo-ImageMagick.csproj +++ b/Demo-ImageMagick/Demo-ImageMagick.csproj @@ -10,7 +10,7 @@ - + diff --git a/Demo-ImageSharp/Demo-ImageSharp.csproj b/Demo-ImageSharp/Demo-ImageSharp.csproj index 21de517..ace9e4c 100644 --- a/Demo-ImageSharp/Demo-ImageSharp.csproj +++ b/Demo-ImageSharp/Demo-ImageSharp.csproj @@ -5,7 +5,7 @@ net6.0 Net.Codecrete.QrCodeGenerator.Demo Net.Codecrete.QrCodeGenerator.Demo - 2.0.5 + 2.0.6 Manuel Bleichenbacher, Project Nayuki QR Code Generator for .NET Demo application for QR Code Generation diff --git a/Demo-SkiaSharp/Demo-SkiaSharp.csproj b/Demo-SkiaSharp/Demo-SkiaSharp.csproj index bbc3e28..a2ff8f2 100644 --- a/Demo-SkiaSharp/Demo-SkiaSharp.csproj +++ b/Demo-SkiaSharp/Demo-SkiaSharp.csproj @@ -5,7 +5,7 @@ netcoreapp3.1 Net.Codecrete.QrCodeGenerator.Demo Net.Codecrete.QrCodeGenerator.Demo - 2.0.5 + 2.0.6 Manuel Bleichenbacher, Project Nayuki QR Code Generator for .NET Demo application for QR Code Generation diff --git a/Demo-System-Drawing/Demo-System-Drawing.csproj b/Demo-System-Drawing/Demo-System-Drawing.csproj index aa4eb9a..bf928f7 100644 --- a/Demo-System-Drawing/Demo-System-Drawing.csproj +++ b/Demo-System-Drawing/Demo-System-Drawing.csproj @@ -5,7 +5,7 @@ netcoreapp3.1 Net.Codecrete.QrCodeGenerator.Demo Net.Codecrete.QrCodeGenerator.Demo - 2.0.5 + 2.0.6 Manuel Bleichenbacher, Project Nayuki QR Code Generator for .NET Demo application for QR Code Generation diff --git a/Demo-WinUI/Demo-WinUI/Demo-WinUI.csproj b/Demo-WinUI/Demo-WinUI/Demo-WinUI.csproj index 50c96f8..a783088 100644 --- a/Demo-WinUI/Demo-WinUI/Demo-WinUI.csproj +++ b/Demo-WinUI/Demo-WinUI/Demo-WinUI.csproj @@ -37,7 +37,7 @@ - + diff --git a/QrCodeGenerator/QrCode.cs b/QrCodeGenerator/QrCode.cs index 640413e..c1d5cec 100644 --- a/QrCodeGenerator/QrCode.cs +++ b/QrCodeGenerator/QrCode.cs @@ -1017,7 +1017,7 @@ private struct FinderPenalty internal FinderPenalty(int size) { _length = 0; - _runHistory = new short[177]; + _runHistory = new short[179]; _size = size; } diff --git a/QrCodeGenerator/QrCodeGenerator.csproj b/QrCodeGenerator/QrCodeGenerator.csproj index 7b5e3f9..9f9a247 100644 --- a/QrCodeGenerator/QrCodeGenerator.csproj +++ b/QrCodeGenerator/QrCodeGenerator.csproj @@ -4,7 +4,7 @@ netstandard2.0 Net.Codecrete.QrCodeGenerator Net.Codecrete.QrCodeGenerator - 2.0.5 + 2.0.6 Manuel Bleichenbacher, Project Nayuki QR Code Generator for .NET QR Code Generator for .NET – simple, compact and with many examples. @@ -34,7 +34,7 @@ Optional advanced features: README.md logo.png qr code, qrcode, kanji, qrcode generator, svg - New in releases 2.0 / 2.0.1 / 2.0.2 / 2.0.3 / 2.0.4 / 2.0.5: + New in releases 2.0.x: - Fully compatible with .NET 6 (no longer depends on System.Drawing) - Separate ToBitmap() implementations for System.Drawing, SkiaSharp and ImageSharp - Documentation included into NuGet package @@ -43,16 +43,17 @@ Optional advanced features: - BMP bitmap generation - Fix for SVG generation with Norwegian locale - Enable trimming for .NET 6 +- Fix for `IndexOutOfRangeException` Codecrete true Key.snk 1.6.0.0 - 2.0.5.0 + 2.0.6.0 MIT True true - 2.0.5 + 2.0.6 2.0.0 True diff --git a/QrCodeGenerator/docs/README.md b/QrCodeGenerator/docs/README.md index cc5cb06..e660c5e 100644 --- a/QrCodeGenerator/docs/README.md +++ b/QrCodeGenerator/docs/README.md @@ -44,7 +44,7 @@ Optional advanced features: Or by running a command in the Package Manager Console ``` -Install-Package Net.Codecrete.QrCodeGenerator -Version 2.0.5 +Install-Package Net.Codecrete.QrCodeGenerator -Version 2.0.6 ``` 3. Add the code from the example below diff --git a/QrCodeGeneratorTest/QrCodeGeneratorTest.csproj b/QrCodeGeneratorTest/QrCodeGeneratorTest.csproj index 3977094..01e6129 100644 --- a/QrCodeGeneratorTest/QrCodeGeneratorTest.csproj +++ b/QrCodeGeneratorTest/QrCodeGeneratorTest.csproj @@ -9,7 +9,7 @@ Net.Codecrete.QrCodeGenerator.Test - 2.0.5 + 2.0.6 Manuel Bleichenbacher, Project Nayuki diff --git a/QrCodeGeneratorTest/QrCodeTest.cs b/QrCodeGeneratorTest/QrCodeTest.cs index 5792a81..d920ffc 100644 --- a/QrCodeGeneratorTest/QrCodeTest.cs +++ b/QrCodeGeneratorTest/QrCodeTest.cs @@ -931,5 +931,13 @@ public void TestCode14() Assert.Equal(Modules14, TestHelper.ToStringArray(qrCode)); } + [Fact] + public void TestCode15() + { + var segments = QrSegment.MakeSegments("testing"); + var qrCode = EncodeSegments(segments, Ecc.Medium, 40, 40, -1, true); + Assert.Equal(40, qrCode.Version); + } + } } diff --git a/README.md b/README.md index 2733b31..5fff96d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Optional advanced features: Or by running a command in the Package Manager Console ``` -Install-Package Net.Codecrete.QrCodeGenerator -Version 2.0.5 +Install-Package Net.Codecrete.QrCodeGenerator -Version 2.0.6 ``` 3. Add the code from the example below