简体   繁体   English

dnSpy 编译后程序崩溃

[英]Program crash after dnSpy compilation

I'm new to dnSpy and there's a program I want to debug, I deobfuscated the.dll in de4dot and then opened it in dnSpy to debug.我是 dnSpy 的新手,有一个程序要调试,我在 de4dot 中对 .dll 进行了去混淆处理,然后在 dnSpy 中打开它进行调试。 I tried compiling some method.我尝试编译一些方法。 no compilation error, saved it.没有编译错误,保存它。 And ran the program, result in a crash.并运行程序,导致崩溃。 BUT there's someone who tried the same on his pc but the program works well.但是有人在他的电脑上尝试过同样的方法,但该程序运行良好。 I don't know why.我不知道为什么。

Tried to just compile a random method in the.dll without changing anything, but still the same.试图在 .dll 中编译一个随机方法而不改变任何东西,但仍然是一样的。 The program crashed.程序崩溃了。 But when I let the program run without a compilation in dnSpy it works.但是当我让程序在没有编译的情况下在 dnSpy 中运行时,它就可以工作。 Why?为什么? Someone even tried the same step as I did, his program works but mine doesn't.有人甚至尝试了与我相同的步骤,他的程序有效,但我的程序无效。 I tried using x86, x64,.netframework, ... on different version but none works.我尝试在不同版本上使用 x86, x64,.netframework, ... 但没有效果。 Can someone tell me what's my problem?有人可以告诉我我的问题是什么吗? I'm using Windows 10 x64 20h2.我正在使用 Windows 10 x64 20h2。 I've got do.net 4.8 and 3.5 installed with SDK 5.我用 SDK 5 安装了 do.net 4.8 和 3.5。

Well, I figured it out.好吧,我想通了。 It was the deobfuscation process with de4dot that went wrong. de4dot 的反混淆过程出了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM