From 5e7797e662e4564c4635df6c5bc8de698ef73af5 Mon Sep 17 00:00:00 2001 From: Simon Nattress Date: Sun, 12 Aug 2018 17:09:55 -0700 Subject: [PATCH] Silence WinRT type assert in crossgen (dotnet/coreclr#19442) Disable type loader assert that fires when resolving a type from a WinMD. Instead, compilation should fail gracefully, or at runtime a type load exception will be thrown. Commit migrated from https://github.com/dotnet/coreclr/commit/8589689bc34eb7fab6b33c88505bb041de9e9995 --- src/coreclr/src/vm/assembly.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/coreclr/src/vm/assembly.cpp b/src/coreclr/src/vm/assembly.cpp index e5e70ad..24e086e 100644 --- a/src/coreclr/src/vm/assembly.cpp +++ b/src/coreclr/src/vm/assembly.cpp @@ -1213,7 +1213,6 @@ Module * Assembly::FindModuleByTypeRef( if (pModule->HasBindableIdentity(tkType)) #endif// FEATURE_COMINTEROP { - _ASSERTE(!IsAfContentType_WindowsRuntime(pModule->GetAssemblyRefFlags(tkType))); if (loadFlag == Loader::SafeLookup) { pAssembly = pModule->LookupAssemblyRef(tkType); -- 2.7.4