Share via


Renaming Exclusion Rules

The “exclude list” section provides a dynamic way to fine tune the renaming of the input assemblies. The user specifies a list of “rules” that are applied at runtime. If a rule selects a given class, method, or field, then that item is not renamed.

These rules are applied in addition to rules implied by global options such as library.

Rules are logically ORed together.

Regular Expressions (REs) may be used to select namespaces, types, methods or fields. The optional “regex” attribute is used for this purpose. The default value of “regex” is false. If “regex” is true then the value of the name attribute is interpreted as a regular expression; if it is false, the name is interpreted literally. This is important since REs assign special meaning to certain characters (e.g. the period).

Here are some examples of simple regular expressions:

.*                  Matches anything
MyLibrar.           Matches MyLibrary, MyLibrari, etc.
My[\.]Test[\.]I.*   Matches My.Test.Int1,My.Test.Internal, etc.
Get.*               Matches GetInt, GetValue, etc.
Get*                Matches Ge,Get,Gett,Gettt, etc.

Please refer to the .NET Framework documentation for a full description of the regular expression syntax.

In this section

Excluding Namespaces

Excluding Types

Excluding Methods

Excluding Fields

Excluding By Custom Attribute

Excluding Assemblies

Excluding Modules

© 2002-2007 PreEmptive Solutions. All rights reserved.