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);
        }
Пример #2
0
 protected abstract AssemblyData CreateAssemblyDataForCompilation(
     CompilationReference compilationReference);
Пример #3
0
 /// <summary>
 /// Adds the assembly to the cache.
 /// </summary>
 internal void AddAssembly(Assembly assembly, CompilationReference compilationReference)
 {
     cachedAssemblyMetadata[assembly] = compilationReference;
     cachedAssemblies[assembly.FullName] = assembly;
 }