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.
Linker doesn't resolve type references to facades in data flow cases #1542
For example [DynamicDependency(".ctor","System.Xml.Linq.XElement","System.Xml.Linq")] will generate warning (IL2036) because it won't be able to find the type XElement in System.Xml.Linq - the type is actually not declared there, System.Xml.Linq only has a type forward for it.
Similarly when passing in a constant string to a value annotated with DynamicallyAccessedMember - the type resolution also doesn't see through type-forwards.
This also applies to intrinsic handling for things like Type.GetType.
Activity
vitek-karas commentedon Jun 17, 2021
This is now fixed. The linker will not only correctly see through facades, but it will also preserve the facade and the type forwarder in it.