commandlineparser / commandlineparser/commandline

`VerbAttribute` has unnecessary breaking changes between 2.8.0 and 2.9.1

オープン
#919 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
`VerbAttribute`'s constructor signature has changed between 2.8.0 and 2.9.1. There is a default value for the new alias parameter, so recompilation of the same source code is possible without error. However, upgrading without rebuilding is not possible.

**To Reproduce**
Steps to reproduce the behavior:
1. Create an exe depending on CommandLineParser 2.8.0 that uses `VerbAttribute`
2. Replace CommandLineParser 2.8.0 with CommandLineParser 2.9.1 in the bin folder
3. Execute the exe
4. See error

**Additional context**
When having multiple exes in the same folder, all exes need to be rebuilt and updated simultaneously along with updating CommandLineParser in order to upgrade.

Reintroducing the 2.8.0 `VerbAttribute` constructor, (and possibly labeling it as obsolete), would allow assemblies built with version 2.8.0 and assemblies built with version 2.9.1 to both work with the new version (possibly requiring binding redirects).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず C# プロジェクト内の VerbAttribute コンストラクターを見つけ、実行可能ファイルを再ビルドせずに、報告された CommandLineParser 2.8.0 から 2.9.1 へのアップグレードを再現します。VerbAttribute またはアセンブリ互換性に関する既存のテストを確認し、その後、両方のバージョンに対してビルドされたアセンブリが、報告されたコンストラクターエラーなしで新しいパッケージを使用して実行できることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。