You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove Microsoft.DotNet.CilStrip.Sources from runtime-assets #383
Another (cheap) option that we discussed is using the functionality @fanyang-mono introduced in IlStrip which zeroes out method bodies for all methods instead of a subset, this feature only relies on SRM. It'd make the binary size on disk larger but the compressed size probably stays similar.
Activity
steveisok commentedon Nov 8, 2023
@akoeplinger @fanyang-mono I think the readme should at least be updated. Do you think we can have an ILStrip replacement in .NET 9?
fanyang-mono commentedon Nov 8, 2023
If the functionality of writing a modified assembly to file and validating the new assembly are implemented, then probably yes.
lewing commentedon Feb 9, 2024
what is the status here?
steveisok commentedon Feb 9, 2024
This one is tough because modern cecil rewrites tokens and aot images rely on exact values. Here's what I see our options are in .NET 9:
An API like Efficient API to stream from a MetadataReader to a MetadataBuilder with modifications runtime#30443 lands and we're able to use it
@vargaz does something creative with the ILStrip tool emitting a remapping table and the runtime uses it to remap
We do nothing until an adequate API lands
lewing commentedon Feb 9, 2024
cc @vitek-karas
akoeplinger commentedon Feb 9, 2024
Another (cheap) option that we discussed is using the functionality @fanyang-mono introduced in IlStrip which zeroes out method bodies for all methods instead of a subset, this feature only relies on SRM. It'd make the binary size on disk larger but the compressed size probably stays similar.
clin1234 commentedon Oct 2, 2026
Any update on this issue?
akoeplinger commentedon Oct 2, 2026
we can actually do this now in .NET 12 since this code is used in ILStrip only for Mono-related cases and those go away.