diff options
author | Roman Artemev <rartemev@microsoft.com> | 2017-04-07 16:07:14 -0700 |
---|---|---|
committer | Roman Artemev <rartemev@microsoft.com> | 2017-04-10 12:46:15 -0700 |
commit | a1cde62225c0a7d5c889bff6e21660e2e170299a (patch) | |
tree | d3552cf906fb1e305332304875a4076c1b5dd1cd /src | |
parent | a1718a86e0d706ae11baa2880effc4e84f55bcc8 (diff) | |
download | coreclr-a1cde62225c0a7d5c889bff6e21660e2e170299a.tar.gz coreclr-a1cde62225c0a7d5c889bff6e21660e2e170299a.tar.bz2 coreclr-a1cde62225c0a7d5c889bff6e21660e2e170299a.zip |
Added netstandard corelib into ilasm reference resolver
Diffstat (limited to 'src')
-rw-r--r-- | src/ilasm/assembler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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"); } |