ILSpyCmd: Add the ability to generate a default decompiler settings file

Aperta
#3,607 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

L'issue identifica ILSpyCmd e l'argomento esistente --ilspy-settingsfile come punto di ingresso; inizia tracciando tale opzione e l'oggetto delle impostazioni del decompilatore utilizzato dall'approccio di serializzazione basato su NuGet. Conferma il formato di output predefinito e il comportamento specifico della versione, quindi verifica che il nuovo argomento produca un file di impostazioni utilizzabile che possa essere passato nuovamente a --ilspy-settingsfile.

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

Descrizione

Enhancement ILSpyCmd

Is your feature request related to a problem? Please describe.
The new ILSpyCmd (I am testing using 10.0.0.8079 preview) added a useful argument called --ilspy-settingsfile <path> (and another one to specify the settings one by one) which is very helpful, but I have a concern about knowing what a default settings file would look like. If I were to use this feature, I would at least need a way for ILSpy to generate me a default settings file so I can modify it later since I cannot know the format in advance.

Describe the solution you'd like
A new command line argument that generates a default settings file. I can then modify this file and use the aforementioned argument more easily. This would of course generate a file that is only guaranteed to work for this particular version of ILSpy, but so does the one that loads the file.

Additional context
I feel this is especially important because the format may change with each version. It's possible settings gets added, removed or renamed and I would like to have a way to get started on a default settings file so I can change what I want. As far as I can tell, this is only possible to do by using the nuget package version of ILSpy, create a new decompiler settings object and serialising that. That's...inconvenient. I don't count the main UI version of ILSpy because it's Windows only while I use Linux and as far as I can tell, doing what I just said is the only way to get a default settings file.

Lingua principale
C#
Stelle
27.1k
Fork
3.8k
Merge medio
1g 23h
PR unite (30g)
44

Preparare l'ambiente

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 icsharpcode/ILSpy

Tutte le issue di icsharpcode/ILSpy

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.