Skip to content

AppBundleIsTrimmable

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

appbundle 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 appbundle <appbundle> is-trimmable [OPTIONS]

ARGUMENTS:

  • <appbundle> Application Bundle to analyze

OPTIONS:

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

RETURN CODES:

Return Code Description
0 At least one assembly inside the appbundle is trimmable
1 No trimmable assembly was found inside the appbundle
-1 Error while validating the arguments or running the command
-2 Error while reading the specified assembly

EXAMPLES:

$ cilout appbundle bin/Debug/net6.0/ is-trimmable

Assembly `bin/Debug/net6.0/Mono.Cecil.Rocks.dll` is not trimmable.
Assembly `bin/Debug/net6.0/cilout.dll` is not trimmable.
Assembly `bin/Debug/net6.0/Spectre.Console.dll` is not trimmable.
Assembly `bin/Debug/net6.0/Mono.Cecil.dll` is not trimmable.
Assembly `bin/Debug/net6.0/Mono.Cecil.Pdb.dll` is not trimmable.
Assembly `bin/Debug/net6.0/Mono.Cecil.Mdb.dll` is not trimmable.
Assembly `bin/Debug/net6.0/ref/cilout.dll` is not trimmable.
Clone this wiki locally