Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`VerbAttribute` has unnecessary breaking changes between 2.8.0 and 2.9.1

Aperta
#919 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
cli

Direzione di ricerca

Inizia individuando il costruttore di VerbAttribute nel progetto C# e riproduci l’aggiornamento segnalato da CommandLineParser 2.8.0 a 2.9.1 senza ricompilare l’eseguibile. Controlla i test esistenti relativi a VerbAttribute o alla compatibilità degli assembly, quindi assicurati che gli assembly compilati con entrambe le versioni possano essere eseguiti con il pacchetto più recente senza l’errore del costruttore segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di commandlineparser/commandline

Tutte le issue di commandlineparser/commandline

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.