private bool DetectPortableDependency(CompilationReference compilationReference, ref bool referencesPortableLibrary) { if (compilationReference == null) { return(false); } if (referencesPortableLibrary) { return(false); } var data = CreateAssemblyDataForCompilation(compilationReference); referencesPortableLibrary |= HasSystemRuntime(data.AssemblyReferences); return(false); }
protected abstract AssemblyData CreateAssemblyDataForCompilation( CompilationReference compilationReference);
/// <summary> /// Adds the assembly to the cache. /// </summary> internal void AddAssembly(Assembly assembly, CompilationReference compilationReference) { cachedAssemblyMetadata[assembly] = compilationReference; cachedAssemblies[assembly.FullName] = assembly; }