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
Update MetadataReferenceCache to stop using reflection #14792
MetadataReferenceCache.GetObject<T>() uses runtime reflection (PropertyInfo, MethodInfo.Invoke, DeclaredProperties) to discover and cache string properties on package metadata objects. This approach:
Is incompatible with Native AOT
Desired Behavior
Replace the reflection-based property discovery in MetadataReferenceCache.GetObject<T>() with an explicit ICacheable interface. Types that need string deduplication implement CacheStrings(MetadataReferenceCache cache) directly, calling cache.GetString() on each string property at compile time rather than discovering them via reflection at runtime.
Activity