2010 Visual Studio 的 Visual COBOL
我刚刚安装了 Visual COBOL 的试用版以及 Micro Focus 的 Visual Studio 2010。我正在尝试将我的旧 COBOL 程序之一编译为 .NET 程序集。当我编译时,它会在 bin 文件夹中创建 .IDY 文件扩展名文件。我想将程序集反编译为 C# 代码。无论如何我可以做到这一点吗?
I just installed trail version of Visual COBOL with visual studio 2010 from Micro Focus. I am trying to compile one of my old COBOL programs into .NET assembly. When I compile, it creates .IDY file exension file in the bin folder. I want to decompile assembly to C# code. Is there anyway I can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
[注:来自 Micro Focus 的帖子]
正如之前的帖子所述,IDY 文件仅用于支持调试器。
如果这是一个托管代码项目(并且您可以使用 Visual COBOL 在 VS 2010 中创建托管和非托管(本机)代码),那么您将像任何其他 .NET 语言一样使用标准 MSIL 中的程序集。请记住,这不是人类可读的代码,并且依赖于 Micro Focus COBOL 运行时,因此您无法将代码逆向工程为其他语言,例如 C#(也可能存在许可协议问题)。
[Note: post from Micro Focus]
As the previous poster noted, the IDY file is only used to support the debugger.
If this is a managed code project (and you can create both managed and unmanaged (native) code in VS 2010 with Visual COBOL), then you will the assemblies in standard MSIL just like any other .NET language. Bear in mind this is not code that's intended to be human-readable and depends on the Micro Focus COBOL runtime so you can't reverse engineer the code to some other language such as C# (there may also be license agreement issues).
尝试将其重命名为 *.dll,并将其加载到 Reflector 中。如果失败,MicroFocus 正在做一些奇怪的事情,而且这不是 .NEt 程序集。这或许不无道理。 .IDY 文件可能是某种形式的 pcode,由某些运行时解释(即真正的 .NET 代码)
Try renaming it to *.dll, and load it into Reflector. If that fails, MicroFocus is doing something funky and that's not a .NEt assembly. This is probably not unreasonable. The .IDY file could be some form of pcode, which is interpreted by some runtime (that is real .NET code)
.idy 文件包含用于调试的数据,因此在其上使用反射器将不起作用,就像反射器不适用于 .pdb 文件一样。
The .idy file contains data for debugging, so using reflector on it will not work just like reflector does not work on .pdb files.