-
Notifications
You must be signed in to change notification settings - Fork 0
AssemblyIsTrimmable
Sebastien Pouliot edited this page Feb 13, 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 assembly <assembly> is-trimmable [OPTIONS]
-
<assembly>
Assembly to analyze
-
-h
,--help
Prints help information -
-q
,--quiet
No visible output. Use return code.
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 |
$ cilout assembly bin/Debug/net6.0/cilout.dll is-trimmable
Assembly `bin/Debug/net6.0/cilout.dll` is not trimmable.