dotPeek 2024.3 Help

Diff

Tools | Options | Diff

In this page of dotPeek options, you can configure preferences for comparing assemblies, NuGet packages, archives, and folders in the Assembly Explorer , as well as the external diff tool to use for the comparison.

Diff mode

Select one of the following options to display the compared entities:

  • Show all — all items within both entities will be displayed.

  • Show only differences — only items with differences and items that are missing in one of the entities will be shown. All identical items will be hidden.

  • Show only signature differences — only members with different signatures are shown. Members with the same signatures (bodies are ignored) as well as all identical items will be hidden.

  • Show only public API differences — only public members with different signatures are shown. Public members with the same signatures (bodies are ignored), all non-public symbols, as well as identical items will be hidden.

Ignore member order differences

If this option is selected, the following classes will be considered as having no differences:

class Test { int _one = 1; int _two = 2; }
class Test { int _two = 2; int _one = 1; }

Ignore attribute order differences

If this option is selected, the following fields will be considered as having no differences:

[Obsolete] [NonSerialized] string _test = "test";
[NonSerialized] [Obsolete] string _test = "test";

Ignore differences in nullable reference types annotations

If this option is selected, the following methods will be considered as having no differences:

void Sample(string test) { //do something }
void Sample(string? test) { //do something }

External diff tool location

Use this field to specify a diff tool (such as KDiff) to compare decompiled types and members within assemblies.

Command line arguments

Depending on the selected diff tool, specify command line arguments to open the compared documents. The documents are referred to as $1 and $2.

Last modified: 17 June 2024