Working with Reflector.Diff - Using Reflector.Diff
(Page 2 of 4 )
Start Reflector and select Add-Ins from the View menu. Click the Add button, choose Reflector.Diff.dll, and press OK. You should now see the screen shown in Figure 4-9.

Figure 4-9. Reflector's Add-Ins screen
If you press Close, an item labeled “Assembly Diff”will be made available to you in the Tools menu. Select the Reflector node you wish to difference, and click this menu item.
A Reflector node is any item in the Reflector tree view, such as mscorlib in the following example.
The screenshot in Figure 4-10 shows the difference output of the mscorlib assembly for .NET 2.0. Notice that mscorlib from .NET 1.1 is automatically resolved as the assembly to compare against. We’ll look at the exact mechanism by which this resolution is performed momentarily. Lines deleted from the source are displayed in the lefthand pane in light grey. Lines with no changes are in white. Lines added to the destination (in the righthand pane) are displayed in light green. Replaced lines are depicted in red.

Figure 4-10. Differencing an assembly
As you scroll through the difference results, the source and destination panes will be kept in sync for you.
While the Assembly Diff pane is open, selecting any node in Reflector will result in that node being differenced. Nodes with large numbers of members will take a very long time to difference, so it’s a good idea to keep this pane closed until you’ve reached the actual node you want to analyze.
Next: Exporting the results >>
More BrainDump Articles
More By O'Reilly Media
|
This article is excerpted from chapter four of the book Windows Developer Power Tools, written by James Avery and Jim Holmes (O'Reilly; ISBN: 0596527543). Check it out today at your favorite bookstore. Buy this book now.
|
|