Reflector is out. Try ilspy)

Source: Internet
Author: User
Tags reflector sharpdevelop

Http://www.cnblogs.com/JamesLi2015/archive/2011/09/08/2170519.html

Reflector is a necessary decompilation tool in. NET development. Even if it is not used in the decompilation field, it is often used to check the Assembly naming conventions, whether the namespace is reasonable, and whether the organization type methods need to be improved. For example, you can view the complete name of an assembly.

The name here is the complete identifier of an assembly. When multiple versions of the Assembly exist in GAC, this name is a unique recognition name.

However, reflector has switched to paid software for a long time and requires a license. Friends who are ashamed of using pirated files often give up. Some friends said that reflector did not add more aggressive features, but switched to charging, which is confusing. Let's take a look at the. NET decompilation software on the market, which was defeated by reflector.

When talking about reflector and. Net decompilation, reflector is often the default preferred tool.

This
The monopoly of Visual Studio. Visual Studio occupies the absolute monopoly of the. NET development tool series. In the. NET 1. x era, C #
Builder, Delphi. Net to use and experience. But later,. net
Framwork is updated frequently, and changes are made at the compiler level and language level. This makes third-party software development tool providers very worried. These tools are also gradually removed from the market, and almost no third-party software
Software developers are willing to develop. NET development tools and Visual Studio. Without competition, the progress will be much slower. Visual Studio
2008 is almost a substitute for Visual Studio 2005 + sp. At the tool level, Visual Studio 2005 SP1 adds Web
The application is Visual Studio 2008. Although the language layer has improved a lot,. Net 3.0,. Net 3.5, and LINQ,
The framework method has been added: WCF, WPF, and WF. However, I have always known that from 2005 to 2008, there is no progress in the tool layer.

Sharpdevelop
In addition to Visual Studio, it is another and only. Net open tool that can be selected and is open-source. It provides quite good functions, almost just rewriting the visual
Studio. In the latest version
Studio solution file and project file support. Ilspy is The Decompilation tool of the sharpdevelop team and is also open source code. Let's introduce its debugger and
The anti-compiler allows the reflector out with no overhead function added.

The interface of ilspy is similar to that of reflector. The tree control on the left shows the dataset and its type, and the source code on the right is corresponding. The basic decompilation function is not inferior to reflector. Sometimes, reflector cannot be used to decompile (because of encryption) the Assembly. ilspy can be used to decompile the assembly.

Decompiler anti-Compiler

The basic type decompilation function is available. Currently, only the source code can be decompiled into C # And il languages, and VB is not supported.

When you need to find an assembly that is A. NET Framework, you can directly open the Assembly from the menu file-open from GAC to view the source code.

The Code saving function is also good. When you click a type, selecting File> Save code will decompile the current type and save it to the specified file. When you select an assembly, save code is saved as a project (csproj) file, and all its types are added to this project.

 

Debugger

The debugger here is not the source code-level debugger of Visual Studio, but the debugger of the Assembly. Reflector has an addin that can be directly attached to Visual Studio to debug a third-party Type Library, without the need to decompile a third-party Type Library and add it to the project in the form of source code.

Ilspy also provides this function to debug third-party Assembly directly. There are two options:

If the third-party library is an executable program (exe), you can use DEBUG an executable to start this program.

If the third-party type library is an assembly (DLL), attach to running application to start assembly debugging.

The above two figures show its usage, which is the same as debugging source code. Set the breakpoint where you want to monitor the value of a variable. When the program runs, you can monitor the value of a variable through the form. From the status bar of ilspy, we can see that the first figure above is in the debugging status, and the second figure is ready for debugging.

The difference between the two is that during debugging by attach to a running application, if the code is optimized by the compiler, the monitor cannot get its value.

The value of the variable num being debugged cannot be displayed because the code has been optimized. The recommended method is debug an executable.

And debug in Visual Studio.. net source code is the same. You can step into, step over, and continue. At the same time, the status bar will be displayed as stand by, running, and debugging ).

In addition to debugging the C #/VB code of the assembly, you can also debug the code in the form of IL code, as shown in

From this point of view, this is a very good tool for debugging il code. Tools can promote the learning effect. After learning and understanding, tools can be promoted. This is an endless development of knowledge.

The debugger of ilspy exists as a plug-in. Ensure that the plug-in contains ilspy. debugger.

According to our understanding, debugging A. Net Assembly requires a PDB file. However, ilspy does not generate a PDB file (No PDB files are generated), and it cannot debug ASP. NET web applications and Web services.
The principle is not clear. Compiler/debugger has always been my favorite technical topic, but it is superficial and cannot be shared.

 

Reflector detects that the system time has exceeded its preset time. If it is not upgraded, it will take the initiative to delete itself and remove it from your computer. If you are worried about this, let it go out. You can have another option. Try ilspy, which may bring a little surprise.

Ilspy: http://wiki.sharpdevelop.net/ilspy.ashx

Http://build.sharpdevelop.net/BuildArtefacts/#ILSpyMaster

Http://www.cnblogs.com/JamesLi2015/archive/2011/09/08/2170519.html

Reflector is a necessary decompilation tool in. NET development. Even if it is not used in the decompilation field, it is often used to check the Assembly naming conventions, whether the namespace is reasonable, and whether the organization type methods need to be improved. For example, you can view the complete name of an assembly.

The name here is the complete identifier of an assembly. When multiple versions of the Assembly exist in GAC, this name is a unique recognition name.

However, reflector has switched to paid software for a long time and requires a license. Friends who are ashamed of using pirated files often give up. Some friends said that reflector did not add more aggressive features, but switched to charging, which is confusing. Let's take a look at the. NET decompilation software on the market, which was defeated by reflector.

When talking about reflector and. Net decompilation, reflector is often the default preferred tool.

This
The monopoly of Visual Studio. Visual Studio occupies the absolute monopoly of the. NET development tool series. In the. NET 1. x era, C #
Builder, Delphi. Net to use and experience. But later,. net
Framwork is updated frequently, and changes are made at the compiler level and language level. This makes third-party software development tool providers very worried. These tools are also gradually removed from the market, and almost no third-party software
Software developers are willing to develop. NET development tools and Visual Studio. Without competition, the progress will be much slower. Visual Studio
2008 is almost a substitute for Visual Studio 2005 + sp. At the tool level, Visual Studio 2005 SP1 adds Web
The application is Visual Studio 2008. Although the language layer has improved a lot,. Net 3.0,. Net 3.5, and LINQ,
The framework method has been added: WCF, WPF, and WF. However, I have always known that from 2005 to 2008, there is no progress in the tool layer.

Sharpdevelop
In addition to Visual Studio, it is another and only. Net open tool that can be selected and is open-source. It provides quite good functions, almost just rewriting the visual
Studio. In the latest version
Studio solution file and project file support. Ilspy is The Decompilation tool of the sharpdevelop team and is also open source code. Let's introduce its debugger and
The anti-compiler allows the reflector out with no overhead function added.

The interface of ilspy is similar to that of reflector. The tree control on the left shows the dataset and its type, and the source code on the right is corresponding. The basic decompilation function is not inferior to reflector. Sometimes, reflector cannot be used to decompile (because of encryption) the Assembly. ilspy can be used to decompile the assembly.

Decompiler anti-Compiler

The basic type decompilation function is available. Currently, only the source code can be decompiled into C # And il languages, and VB is not supported.

When you need to find an assembly that is A. NET Framework, you can directly open the Assembly from the menu file-open from GAC to view the source code.

The Code saving function is also good. When you click a type, selecting File> Save code will decompile the current type and save it to the specified file. When you select an assembly, save code is saved as a project (csproj) file, and all its types are added to this project.

 

Debugger

The debugger here is not the source code-level debugger of Visual Studio, but the debugger of the Assembly. Reflector has an addin that can be directly attached to Visual Studio to debug a third-party Type Library, without the need to decompile a third-party Type Library and add it to the project in the form of source code.

Ilspy also provides this function to debug third-party Assembly directly. There are two options:

If the third-party library is an executable program (exe), you can use DEBUG an executable to start this program.

If the third-party type library is an assembly (DLL), attach to running application to start assembly debugging.

The above two figures show its usage, which is the same as debugging source code. Set the breakpoint where you want to monitor the value of a variable. When the program runs, you can monitor the value of a variable through the form. From the status bar of ilspy, we can see that the first figure above is in the debugging status, and the second figure is ready for debugging.

The difference between the two is that during debugging by attach to a running application, if the code is optimized by the compiler, the monitor cannot get its value.

The value of the variable num being debugged cannot be displayed because the code has been optimized. The recommended method is debug an executable.

And debug in Visual Studio.. net source code is the same. You can step into, step over, and continue. At the same time, the status bar will be displayed as stand by, running, and debugging ).

In addition to debugging the C #/VB code of the assembly, you can also debug the code in the form of IL code, as shown in

From this point of view, this is a very good tool for debugging il code. Tools can promote the learning effect. After learning and understanding, tools can be promoted. This is an endless development of knowledge.

The debugger of ilspy exists as a plug-in. Ensure that the plug-in contains ilspy. debugger.

According to our understanding, debugging A. Net Assembly requires a PDB file. However, ilspy does not generate a PDB file (No PDB files are generated), and it cannot debug ASP. NET web applications and Web services.
The principle is not clear. Compiler/debugger has always been my favorite technical topic, but it is superficial and cannot be shared.

 

Reflector detects that the system time has exceeded its preset time. If it is not upgraded, it will take the initiative to delete itself and remove it from your computer. If you are worried about this, let it go out. You can have another option. Try ilspy, which may bring a little surprise.

Ilspy: http://wiki.sharpdevelop.net/ilspy.ashx

Http://build.sharpdevelop.net/BuildArtefacts/#ILSpyMaster

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.