ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

ILSpyCmd path filter option request

Open taozhiyu opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I am trying to use ILSpyCmd to automate the extraction of specified content from unity code, so far everything is working great, but when I extract the code files I have to wait to write out all the files! And usually it would be close to 10 minutes.

For example, we use this command to decompile:

ilspycmd --disable-updatecheck -p -o path/in/temp Assembly-CSharp.dll

and we have to wait for almost 7-8 mins (in avarage)

Describe the solution you'd like My be we can do it in an easier way: Add an option to allow us to export only the files we need (as simple as extracting a single file from a zip with files)

so we can use it like this to create file in path a/b/c only:

# maybe use --filter:
ilspycmd --disable-updatecheck -p -o path/in/temp Assembly-CSharp.dll --filter a.b.c
# and (-f) in short, maybe:
ilspycmd --disable-updatecheck -p -o path/in/temp Assembly-CSharp.dll -f a.b.c

Additional context Add any other context or screenshots about the feature request here.

taozhiyu avatar Jan 01 '24 15:01 taozhiyu

If you know the fully-qualified name of the type you want to decompile, you can use the -toption, we could extend it to support globbing/regex...

siegfriedpammer avatar Jan 01 '24 16:01 siegfriedpammer