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
What I'd want to avoid in a fix for this is someone getting in a position where some ways to register metadata support both attributes but some ways only support one attribute, thus making a confusing support issue.
I have not dived in to do deep research on this. It may be a non-issue, but figuring that out will be part of solving this. Before we take any sort of PR for it, I'd want to hear about why no change is required in Autofac.Mef. If there are changes required in Autofac.Mef, likely we'd want to do those first so we can take the updated version here and ensure consumers of Autofac.Extras.AttributeMetadata get a unified experience on install.
Problem Statement
It’s very difficult to use
MetadataAttributeFiltering
in Unity netstandard2.0.System.ComponentModel.Composition
is unavailable.Desired Solution
I would like to be able to tag classes with
System.Composition.MetadataAttribute
.Alternatives You've Considered
I have tried to load the nugget package
System.ComponentModel.Composition
but Unity shims it and the project never gets the reference.I have tried tagging with
System.Composition.MetadataAttribute
but the Registrations on the container does not show anyMetadataAttribute
Additional Context
It’s Unity so the netstandard2.0 support is kind of iffy.
The text was updated successfully, but these errors were encountered: