Repository navigation
.NET Standard 2.0 へ移行し、描画ライブラリを選べる構成に変更 - #5
Merged
Merged
Conversation
- コア(ZipConvertCustomerBarCode)を依存なしの netstandard2.0 に変更し、 バー配置の取得(GetBars)と SVG 出力を追加 - System.Drawing 版(ZipConvertCustomerBarCode.Drawing)と SkiaSharp 版(ZipConvertCustomerBarCode.SkiaSharp)の描画パッケージを追加 - シンボル画像(GIF/resx)をバー配置の表に置き換え - csproj を SDK 形式に変更し、sln を作り直し - LibExecuter を削除し、xUnit のテストプロジェクトを追加 (1.x の出力とシンボル列・画像がピクセル単位で一致することを確認) - README と CLAUDE.md を更新 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3ydQTR8dWU8d28osE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
.NET Framework 4.0 から .NET Standard 2.0 へ移行しました。描画ライブラリは、利用者が用途に合わせて選べる構成にしています。
構成
ZipConvertCustomerBarCodeBarCode.Create()でバーコード生成、GetBars()でバー配置を取得、ToSvg()で SVG 出力ZipConvertCustomerBarCode.DrawingToBitmap()/Save()(Windows のみ)ZipConvertCustomerBarCode.SkiaSharpToSKBitmap()/ToPng()/SavePng()(クロスプラットフォーム)主な変更
BarPatternDic)に置き換えた。各シンボルは 2px 幅のバー 3 本の組み合わせで、21 種類すべてが元の GIF とピクセル単位で一致することを確認済み。Directory.Build.propsに移し、バージョンを 2.0.0 にした。global.jsonで Microsoft.Testing.Platform を指定)。破壊的変更
BarCode.CreateImageとBarCode.Exportを削除した。置き換え方は README の移行表に記載。SkiaSharp.NativeAssets.Linuxパッケージを追加する必要がある。テスト
dotnet testで 85 件すべて成功。既知の問題(このPRでは修正しない)
住所表示番号の 13 番目の枠にアルファベットが来ると、
IndexOutOfRangeExceptionで落ちる(例:A1B2C3D4E5F6G7)。1.x からある不具合で、このPRでは動きを変えていない。別のPRで対応する。🤖 Generated with Claude Code
https://claude.ai/code/session_01HNb8H3ydQTR8dWU8d28osE