-
Notifications
You must be signed in to change notification settings - Fork 0
AppBundleIsTrimmable
Sebastien Pouliot edited this page Feb 15, 2022
·
1 revision
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.
cilout appbundle <appbundle> is-trimmable [OPTIONS]
-
<appbundle>
Application Bundle to analyze
-
-h
,--help
Prints help information -
-q
,--quiet
No visible output. Use return code.
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 |
$ 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.