Repository navigation
Dependabot で NuGet も更新し、公開済み 2.0.0 と API 互換性を比較する - #14
Merged
Merged
Conversation
- Dependabot に nuget を追加(SkiaSharp と NativeAssets はグループで一緒に更新) - PackageValidationBaselineVersion を 2.0.0 にし、公開 API の削除・変更を検出する - CLAUDE.md に上記と master のルールセットについて追記 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
0.0.0-ci.N だとアセンブリのバージョンが基準の 2.0.0 より低く、 パッケージの検証で CP0003 エラーになっていた。 Directory.Build.props を VersionPrefix にし、タグ以外は VersionSuffix で ci.N を付ける。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
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.
変更内容
System.Drawing.Common・SkiaSharp・xunit.v3なども週1回で更新の PR を出すようにした。SkiaSharpとテスト用のSkiaSharp.NativeAssets.Linux.NoDependenciesはバージョンを揃える必要があるため、グループにまとめて一緒に更新する。PackageValidationBaselineVersionを 2.0.0 にした。パッケージ作成時に、nuget.org の 2.0.0 と比べて公開 API を削除・変更しているとエラー(CP0002)になる。2.0.0-ci.Nに変更: これまでの0.0.0-ci.Nだとアセンブリのバージョンが基準の 2.0.0 より低くなり、エラー(CP0003)になる。Directory.Build.propsをVersionPrefixにし、タグ以外は-p:VersionSuffix=ci.Nを付ける(タグのときは従来どおり-p:Version)。確認
dotnet packが-p:VersionSuffix=ci.99(プレリリース版)と-p:Version=2.0.1(タグ版)の両方で通ることを確認した。PrintBarのコンストラクターをinternalにすると、2.0.0 との比較で CP0002 エラーになることを確認した(確認後に元に戻している)。リポジトリ設定(この PR とは別に適用済み)
master にルールセット「master の保護」を作成した。
test4 ジョブ(Ubuntu・Windows × net8.0・netstandard2.0)・pack・verify(actions.lock の検証)🤖 Generated with Claude Code
https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u