#define CoreLibNameLen 22
#define CoreLibSatelliteName_A "System.Private.CoreLib.resources"
#define CoreLibSatelliteNameLen 32
+#define LegacyCoreLibName_A "mscorlib"
#else // !defined(FEATURE_CORECLR)
#define CoreLibName_W W("mscorlib")
#define CoreLibName_IL_W W("mscorlib.dll")
#define CoreLibNameLen 8
#define CoreLibSatelliteName_A "mscorlib.resources"
#define CoreLibSatelliteNameLen 18
+#define LegacyCoreLibName_A "mscorlib"
#endif // defined(FEATURE_CORECLR)
class StringArrayList;
LPCSTR arefName;
USHORT usMajorVersion;
IfFailGo(pNewAdapter->m_pRawMetaModelCommonRO->CommonGetAssemblyRefProps(mdar, &usMajorVersion, NULL, NULL, NULL, NULL, NULL, NULL, &arefName, NULL, NULL, NULL));
- if (0 == strcmp(arefName, CoreLibName_A))
+
+ // We check for legacy Core library name since Windows.winmd references mscorlib and not System.Private.CoreLib
+ if (0 == strcmp(arefName, LegacyCoreLibName_A))
{
pNewAdapter->m_assemblyRefMscorlib = mdar;