'Is there a way to do automated decompilation with ILSpy?
We have a rather large third party product which contains a lot of C# DLLs and is updated every month or so. While the decompiler does only a 98% job where it can't get everything, it's good enough for my purposes for the occasional comparative analysis.
Would there be a way to do command line decompilation so that I could decompile every month's release and save it in an archive in an automated manner?
Perhaps something like
ilspy /f phantasmagorical.dll /s c:\myapp\archive\mar2020
/f - file to decompile, .dll, .exe, etc.
/s - save location
Solution 1:[1]
ILSpy.exe is meant for interactive use and doesn't have anything like that.
You can instead use the ilspycmd command line tool:
ilspycmd phantasmagorical.dll -p -o c:\myapp\archive\mar2020
You could also use the ICSharpCode.Decompiler nuget package to programatically run the decompiler.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |