如何查看exe文件的源代码??? ILSpy
需要准备的工具:电脑,反编译工具ILSpy。
1、首先在百度上搜索下载反编译工具ILSpy,解压后如图,双击.exe文件打开解压工具。
![](https://iknow-pic.cdn.bcebos.com/3b292df5e0fe9925b8addb803aa85edf8cb171b8?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、选择file选项,点击“打开”。
![](https://iknow-pic.cdn.bcebos.com/7aec54e736d12f2e552313b041c2d56285356838?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、接着选择要反编译的文件,点击“打开”。
![](https://iknow-pic.cdn.bcebos.com/728da9773912b31bc4c17ff98818367adbb4e1b5?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、这是会出现一个对话框,在这个对话框里面就可以看到源码了。
![](https://iknow-pic.cdn.bcebos.com/fcfaaf51f3deb48f71f5130efe1f3a292cf57846?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
5、如果想把源码保存下来,自己在源码的基础上修改,点击"file"下的“Save code...”,保存即可。
![](https://iknow-pic.cdn.bcebos.com/9f2f070828381f306d073079a7014c086f06f0c0?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
6、如需用vs打开反编译后的源码,只需要打开这个.csproj文件即可。
![](https://iknow-pic.cdn.bcebos.com/f2deb48f8c5494ee0e2bb2c923f5e0fe98257ed1?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
原文链接:https://zhidao.baidu.com/question/498340352480367212.html