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.
I would like us to consider renaming PreserveDependencyAttribute, or if that's too breaking, add an additional name that the linker recognizes.
"PreserveDependency" speaks to the action a particular tool (in this case, the linker) is going to take based on the information provided, but really the attribute is used to say "this member has a dependency on that member", and a consuming tool can factor that information in however it likes. Thus, a name like "HasDependencyOn" or "ImplicitDependency" or "MemberDependency" or something that speaks to the state rather than to the follow-on action would be good.
I'd like this attribute to be publicly available, perhaps we should have a discussion over there. The attribute name is still used only internally so renaming is still an option.
I expect it'll be around in some form, and hopefully some variant of it ship in .NET 5, but it's still experimental and I expect we'll see some changes / additions around it.
Activity
marek-safar commentedon Oct 30, 2019
I'd like this attribute to be publicly available, perhaps we should have a discussion over there. The attribute name is still used only internally so renaming is still an option.
MattWhilden commentedon Dec 19, 2019
Any update around this attribute? There's some desire to use it to resolve dotnet/runtime#978.
If y'all think that PreserveDependency will be around for a while I may just teach the .NET Native compiler about that for the time being. Thoughts?
stephentoub commentedon Jan 11, 2020
I expect it'll be around in some form, and hopefully some variant of it ship in .NET 5, but it's still experimental and I expect we'll see some changes / additions around it.
marek-safar commentedon May 4, 2020
Closing as the work is now tracked at #1148