3 instantiations of Reference
Microsoft.Build.Tasks.Core (3)
AssemblyDependency\ReferenceTable.cs (3)
576var reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 866var reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 1134Reference newReference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion);
118 references to Reference
Microsoft.Build.Tasks.Core (118)
AssemblyDependency\AssemblyNameReference.cs (2)
17internal Reference reference; 38public static AssemblyNameReference Create(AssemblyNameExtension assemblyName, Reference reference)
AssemblyDependency\Reference.cs (12)
32private HashSet<Reference> _dependees = new HashSet<Reference>(); 38private HashSet<Reference> _dependencies = new HashSet<Reference>(); 178foreach (Reference dependency in _dependencies) 197internal void AddDependency(Reference dependency) 208internal void AddDependee(Reference dependee) 231internal void RemoveDependee(Reference dependeeToRemove) 239internal void RemoveDependency(Reference dependencyToRemove) 248internal HashSet<Reference> GetDependees() 853internal void MakeDependentAssemblyReference(Reference sourceReference) 1070Reference primaryReference = referenceTable.GetReference(primaryAssemblyName);
AssemblyDependency\ReferenceTable.cs (75)
160internal delegate void LogExclusionReason(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework); 370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 379/// Indicates that at least one reference was <see cref="Reference.ExternallyResolved"/> and 403internal void AddReference(AssemblyNameExtension assemblyName, Reference reference) 406if (References.TryGetValue(assemblyName, out Reference referenceGoingToBeReplaced)) 428internal Reference GetReference(AssemblyNameExtension assemblyName) 431References.TryGetValue(assemblyName, out Reference referenceToReturn); 442Reference reference, 576var reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 866var reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 906Reference reference) 951Reference reference) 996Reference reference) 1011Reference reference, 1101Reference reference, 1102List<KeyValuePair<AssemblyNameExtension, Reference>> newEntries) 1129Reference existingReference = GetReference(unifiedDependency.PostUnified); 1134Reference newReference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 1149var newEntry = new KeyValuePair<AssemblyNameExtension, Reference>(unifiedDependency.PostUnified, newReference); 1223internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders, Reference parentReference) 1258Reference reference) 1280foreach (Reference parentReference in reference.GetDependees()) 1367var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1370var removedReferences = new List<Reference>(); 1373var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1381foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1384Reference assemblyReference = assembly.Value; 1445foreach (Reference reference in removedReferences) 1461private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference) 1464foreach (Reference dependee in assemblyReference.GetDependees()) 1481private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1505Reference primaryAssemblyReference = References[primaryAssemblyName]; 1530private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1546foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1548Reference assemblyReference = assembly.Value; 1565private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList) 1577Reference reference = dependency.Key; 1660foreach (Reference reference in References.Values) 1685var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>(); 1687foreach (Reference reference in References.Values) 1768foreach (KeyValuePair<AssemblyNameExtension, Reference> newEntry in newEntries) 1782foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1784Reference reference = assembly.Value; 1866Reference reference = assemblyNameReference.reference; 1946internal bool MarkReferencesExcludedDueToOtherFramework(AssemblyNameExtension assemblyName, Reference reference) 2092internal void MarkReferenceWithHighestVersionInCurrentRedistList(AssemblyNameExtension assemblyName, Reference reference) 2110internal bool MarkReferenceForExclusionDueToHigherThanCurrentFramework(AssemblyNameExtension assemblyName, Reference reference) 2141internal bool MarkReferenceForExclusionDueToHigherThanCurrentFrameworkAttribute(AssemblyNameExtension assemblyName, Reference reference) 2146if (!(reference.IsResolved && _fileExists(reference.FullPath)) || reference.IsPrerequisite || (_frameworkPaths != null && Reference.IsFrameworkFile(reference.FullPath, _frameworkPaths))) 2178foreach (KeyValuePair<AssemblyNameExtension, Reference> assemblyNameWithReference in References) 2181Reference reference = assemblyNameWithReference.Value; 2341Reference leftConflictReference = assemblyReference0.reference; 2342Reference rightConflictReference = assemblyReference1.reference; 2429Reference victimReference = victim == 0 ? leftConflictReference : rightConflictReference; 2430Reference victorReference = victor == 0 ? leftConflictReference : rightConflictReference; 2453if (redistListVersion != null && assemblyName.Version >= redistListVersion && !Reference.IsFrameworkFile(fullPath, frameworkPaths)) 2597foreach (KeyValuePair<AssemblyNameExtension, Reference> kvp in References) 2600Reference reference = kvp.Value; 2671private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName, Reference reference, AssemblyNameExtension assemblyName) 2871if (Reference.IsFrameworkFile(reference.FullPath, _frameworkPaths) || (_installedAssemblies?.FrameworkAssemblyEntryInRedist(assemblyName) == true)) 3066internal void LogHigherVersionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3081internal void LogHigherVersionUnresolveDueToAttribute(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3096internal void LogAnotherFrameworkUnResolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3111internal void LogProfileExclusionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3132internal ReferenceAssemblyExtensionPair(Reference key, AssemblyNameExtension value) 3138internal Reference Key { get; } 3154foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 3157Reference reference = assembly.Value;
AssemblyDependency\ResolveAssemblyReference.cs (29)
1080foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in dependencyTable.References) 1084Reference primaryCandidate = assembly.Value; 1093foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in dependencyTable.References) 1097Reference dependencyCandidate = assembly.Value; 1106foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in dependencyTable.References) 1110Reference conflictCandidate = assembly.Value; 1123Reference victor = dependencyTable.GetReference(conflictCandidate.ConflictVictorName); 1172Reference reference = idealAssemblyRemappingsIdentities[i].reference; 1192Reference victimReference = dependencyTable.GetReference(conflictVictim); 1326private void LogReferenceDependenciesAndSourceItemsToStringBuilder(string fusionName, Reference conflictCandidate, StringBuilder log, bool referenceIsUnified = false) 1351foreach (Reference dependeeReference in conflictCandidate.GetDependees()) 1362private void LogDependeeReferenceToStringBuilder(Reference dependeeReference, StringBuilder log) 1378private void LogReference(Reference reference, string fusionName) 1426private MessageImportance ChooseReferenceLoggingImportance(Reference reference) 1621private void LogPrimaryOrDependency(Reference reference, string fusionName, MessageImportance importance) 1685private void LogReferenceErrors(Reference reference, MessageImportance importance) 1747private void LogFullName(Reference reference, MessageImportance importance) 1765private void LogAssembliesConsideredAndRejected(Reference reference, string fusionName, MessageImportance importance) 1864private void LogDependees(Reference reference, MessageImportance importance) 1881private void LogRelatedFiles(Reference reference, MessageImportance importance) 1900private void LogSatellites(Reference reference, MessageImportance importance) 1913private void LogScatterFiles(Reference reference, MessageImportance importance) 1926private void LogCopyLocalState(Reference reference, MessageImportance importance) 1979private void LogImageRuntime(Reference reference, MessageImportance importance) 2002private void LogConflict(Reference reference, string fusionName, StringBuilder log) 2542foreach (var resolvedReference in dependencyTable.References.Values) 2598if (fileExists(item.ItemSpec) && !Reference.IsFrameworkFile(item.ItemSpec, _targetFrameworkDirectories)) 2678private AssemblyNameExtension[] GetDependencies(Reference resolvedReference, FileExists fileExists, GetAssemblyMetadata getAssemblyMetadata, ConcurrentDictionary<string, AssemblyMetadata> assemblyMetadataCache) 2992Reference reference = idealAssemblyRemappedReferences[i].reference;