Dec 26, 2010 at 2:46 AM
Edited Dec 30, 2010 at 2:00 AM
I have a property definition from an assembly that was read by your code.
The type of the property is System.String as confirmed by TypeHelper.TypesAreEquivalent(propertyDefinition.Type, metadataHost.PlatFormType.SystemString) returning true.
But propertyDefinition.Type.ResolvedType is a dummy type definition. Reason: the assembly corresponding to the CoreAssemblySymbolicIdentity is not present in the unitCache.
My question is: can't the metadataHost just load it?
Why do I have to load it manually before anything else just to prevent something like this to happen. Unfortunately I don't understand the inner workings.