本文介绍了不能反编译System.Windows.dll中为Windows Phone 8与ILSpy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 ILSpy ,免费的.NET程序集反编译,分析标准和第三方.NET程序集。它的工作原理不够好为标准的.NET WinForms和WPF库,但我不能反编译System.Windows.dll中为Windows Phone 8位于 C:\ Program Files文件(x86)的\参考大会\微软\框架\ WindowsPhone的\ 8.0 \ 。它显示成员,但它们的内部(来源$ C ​​$ c)是空的。

I am using ILSpy, a free .NET assembly decompiler, to analyze the standard and 3rd party .NET assemblies. It works enough well for the standard .NET WinForms and WPF libraries, but I could not decompile System.Windows.dll for Windows Phone 8 located in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\. It displays the members, but their internals (source code) are empty.

难道ILSpy的问题,或者我们不能反编译使用其他工具,如红门的.NET反射器的Windows Phone .NET库?是否有任何其他方式获得/查看这些组件的源$ C ​​$ C?

Is it a problem of ILSpy, or we cannot decompile Windows Phone .NET libraries using any other tools like Red Gate's .NET Reflector? Is there any other way to get/view the source code of these assemblies?

推荐答案

这是安装在的组件C:\ Program Files文件(x86)的\参考大会\微软\框架\的WindowsPhone \ V8.0 是用于自动完成在Visual Studio中只是占位符。您可以直接通过安装仿真器使用的(图像位于 VHD映像中提取真正的组件C:\ Program Files文件(x86)的\微软的SDK \的Windows Phone \ 8.0 \模拟\图片)。我不记得确切位置的.NET程序集存储在VHD,但你应该能够找到他们很容易通过使用Windows资源管理器的搜索功能。这些都是标准的.NET程序集,这样你就可以与任何反编译器打开它们(ILSpy,反射,JustDecompile,...)。

The assemblies that are installed in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0 are just placeholders used for the auto-completion in Visual Studio. You can extract the real assemblies directly by mounting the VHD image used by the emulator (the images are located in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images). I don't remember exactly where the .NET assemblies are stored in the VHD, but you should be able to find them easily by using the search feature of the Windows Explorer. Those are standard .NET assemblies, so you can open them with any decompiler (ILSpy, Reflector, JustDecompile, ...).

这篇关于不能反编译System.Windows.dll中为Windows Phone 8与ILSpy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:13