Skip to content

AssemblyIsTrimmable

Sebastien Pouliot edited this page Feb 13, 2022 · 1 revision

assembly is-trimmable

An assembly can declare itself as trimmable by adding a [assembly: AssemblyMetadata ("Trimmable", "true")] assembly-level custom attribute.

The ILLink tool removes the attribute when it processes the assembly - since it's not trimmable anymore.

Note that this does not tell you if ILLink has been run on the assembly unless you known the custom attribute was present inside the original version.

USAGE:

cilout assembly <assembly> is-trimmable [OPTIONS]

ARGUMENTS:

  • <assembly> Assembly to analyze

OPTIONS:

  • -h, --help Prints help information
  • -q, --quiet No visible output. Use return code.

RETURN CODES:

Return Code Description
0 Assembly is trimmable
1 Assembly is not trimmable
-1 Error while validating the arguments or running the command
-2 Error while reading the specified assembly

EXAMPLES:

$ cilout assembly bin/Debug/net6.0/cilout.dll is-trimmable

Assembly `bin/Debug/net6.0/cilout.dll` is not trimmable.
Clone this wiki locally