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 }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
@marek-safar suggested getting rid of --keep-facades. I think this is OK since we don't set this or have a public option for it in the SDK, but we should still keep type forwards when they are referenced dynamically. We also need to consider how a future "copyoriginal" action would handle references to type forwarders (see #1669 (comment)). My suggestion is to emit an error in this case, and add support for it in the future if it proves necessary. One challenge is the fact that resolving a typeref through cecil will transparently dereference through the type forwarder without giving the calling code an opportunity to make a decision about the exported type.
I propose we:
Get rid of --keep-facades
Don't mark exported type forwards that just happen to point to a marked type
I think this option is not needed anymore. My understanding is that it was added for netcore (in #12) presumably someone needed it for libraries like trimming.
It'd be great if we could also ensure that any Assembly.Load to facade assembly also keeps the assembly even if has only type forwarders. This is the only useful workaround like scenario I can think of now for the option.
The DynamicDependency issue and the TODO in MarkEntireAssembly was also fixed in #1941. I believe the only remaining item is to get rid of --keep-facades.
Activity
marek-safar commentedon Jan 13, 2021
I think this option is not needed anymore. My understanding is that it was added for netcore (in #12) presumably someone needed it for libraries like trimming.
It'd be great if we could also ensure that any Assembly.Load to facade assembly also keeps the assembly even if has only type forwarders. This is the only useful workaround like scenario I can think of now for the option.
Remove keep-facades option
Remove keep-facades option
vitek-karas commentedon Sep 16, 2022
I think this is already fixed - we reworked exported types handling and all of this was completely changed
The rest of this issue still seems valid unfortunately.
@sbomer, @jtschuster for additional comments
sbomer commentedon Sep 16, 2022
The
DynamicDependencyissue and theTODOinMarkEntireAssemblywas also fixed in #1941. I believe the only remaining item is to get rid of--keep-facades.