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

Abierto
#3,607 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp
Área
cli

Línea de trabajo

El issue identifica ILSpyCmd y el argumento existente --ilspy-settingsfile como punto de entrada; comienza rastreando esa opción y el objeto de configuración del decompilador utilizado por el enfoque de serialización basado en NuGet. Confirma el formato de salida predeterminado y el comportamiento específico de cada versión; después, verifica que el nuevo argumento produzca un archivo de configuración utilizable que pueda pasarse de nuevo a --ilspy-settingsfile.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C#
Estrellas
27.1k
Forks
3.8k
Merge medio
1 d 23 h
PR fusionados (30 d)
44

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de icsharpcode/ILSpy

Todos los issues de icsharpcode/ILSpy

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.