From a1cde62225c0a7d5c889bff6e21660e2e170299a Mon Sep 17 00:00:00 2001 From: Roman Artemev Date: Fri, 7 Apr 2017 16:07:14 -0700 Subject: Added netstandard corelib into ilasm reference resolver --- src/ilasm/assembler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ilasm/assembler.cpp b/src/ilasm/assembler.cpp index 92fd681af6..957b0bd22b 100644 --- a/src/ilasm/assembler.cpp +++ b/src/ilasm/assembler.cpp @@ -276,11 +276,16 @@ mdToken Assembler::GetAsmRef(__in __nullterminated const char* szName) mdToken Assembler::GetBaseAsmRef() { - if(RidFromToken(m_pManifest->GetAsmRefTokByName("System.Runtime")) != 0) + if (RidFromToken(m_pManifest->GetAsmRefTokByName("System.Runtime")) != 0) { return GetAsmRef("System.Runtime"); } + if (RidFromToken(m_pManifest->GetAsmRefTokByName("netstandard")) != 0) + { + return GetAsmRef("netstandard"); + } + return GetAsmRef("mscorlib"); } -- cgit v1.2.3