Mono: Monodis Fails to disassemble WPF application

Created on 29 Jan 2019  路  3Comments  路  Source: mono/mono

I installed mono package on windows 10 using choco (choco install mono --version 5.12.0.301), and then i tried to dissamble a sample App i was testing (using monodis).

After doing some tests with monodis i got an error "Could not load signature of WpfApp1.HelloBootstrapper+<>c:b__2_0 due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0".

Steps to Reproduce

  1. monodis buildOutPutPath\WpfApp1.exe" --output=DecompileResultPath\WpfApp1.il

WpfSourceCode.zip
BuildoutPut.zip
WpfAppDisassemble.zip

Current Behavior

Monodis fails with the message "Could not load signature of WpfApp1.HelloBootstrapper+<>c:b__2_0 due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type: member:(null) signature:"

Expected Behavior

Dll should be dissambled even if types from "PresentationCore" could not be loaded.

On which platforms did you notice this

[ ] macOS
[ ] Linux
[x] Windows

question

Most helpful comment

monodis is legacy tool, please use ikdasm instead

All 3 comments

monodis is legacy tool, please use ikdasm instead

Just for the record this tool solves the issue we're seeing on that application.

As a side note maybe you guys could update this page https://www.mono-project.com/docs/tools+libraries/tools/monodis/ with that information on monodis being a legacy tool in favor of ikdasm.

Thanks, i already tried the tool and it seems to work fine both on windows and linux.

Was this page helpful?
0 / 5 - 0 ratings