在ILSpy版本2.3.1.1855中,我试图对System.dll进行反编译(以解决HttpWebRequest的问题)。此dll位于C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE中。我得到了一个类型和成员的列表,但没有代码。相反,此异常显示在ILSpy代码窗口中:
ICSharpCode.Decompiler.DecompilerException:错误反编译System.Net.WebResponse System.Net.WebRequest::GetResponse() --> System.OverflowException:数组尺寸超出了支持范围。在ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[]堆栈,在ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDefinition methodDef的Int32 popCount,Int32 pushCount,ByteCode pushDefinition(在ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDefinition methodDef),布尔优化,DecompilerContext上下文)在ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable
1 parameters) at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDefinition methodDef, DecompilerContext context, IEnumerable1参数)--内部异常堆栈跟踪的末端--在ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDefinition methodDef,DecompilerContext上下文中,( ICSharpCode.Decompiler.Ast.AstBuilder.CreateMethod(MethodDefinition methodDef)在ICSharpCode.Decompiler.Ast.AstBuilder.AddMethod(MethodDefinition方法中)在ICSharpCode.ILSpy.CSharpLanguage.DecompileMethod(MethodDefinition方法中,ITextOutput输出,DecompilationOptions选项(在ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext上下文中,ITextOutput textOutput)在ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass16.b__15()
有什么暗示吗?
发布于 2016-06-25 19:02:32
那些只是存根。您需要解压缩实际的BCL库,例如:
C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\System.dll
https://stackoverflow.com/questions/38010207
复制相似问题