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); 1135Reference 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) 997Reference reference) 1012Reference reference, 1102Reference reference, 1103List<KeyValuePair<AssemblyNameExtension, Reference>> newEntries) 1130Reference existingReference = GetReference(unifiedDependency.PostUnified); 1135Reference newReference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion); 1150var newEntry = new KeyValuePair<AssemblyNameExtension, Reference>(unifiedDependency.PostUnified, newReference); 1224internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders, Reference parentReference) 1259Reference reference) 1281foreach (Reference parentReference in reference.GetDependees()) 1368var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1371var removedReferences = new List<Reference>(); 1374var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1382foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1385Reference assemblyReference = assembly.Value; 1446foreach (Reference reference in removedReferences) 1462private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference) 1465foreach (Reference dependee in assemblyReference.GetDependees()) 1482private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1506Reference primaryAssemblyReference = References[primaryAssemblyName]; 1531private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1547foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1549Reference assemblyReference = assembly.Value; 1566private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList) 1578Reference reference = dependency.Key; 1661foreach (Reference reference in References.Values) 1686var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>(); 1688foreach (Reference reference in References.Values) 1769foreach (KeyValuePair<AssemblyNameExtension, Reference> newEntry in newEntries) 1783foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 1785Reference reference = assembly.Value; 1867Reference reference = assemblyNameReference.reference; 1947internal bool MarkReferencesExcludedDueToOtherFramework(AssemblyNameExtension assemblyName, Reference reference) 2093internal void MarkReferenceWithHighestVersionInCurrentRedistList(AssemblyNameExtension assemblyName, Reference reference) 2111internal bool MarkReferenceForExclusionDueToHigherThanCurrentFramework(AssemblyNameExtension assemblyName, Reference reference) 2142internal bool MarkReferenceForExclusionDueToHigherThanCurrentFrameworkAttribute(AssemblyNameExtension assemblyName, Reference reference) 2147if (!(reference.IsResolved && _fileExists(reference.FullPath)) || reference.IsPrerequisite || (_frameworkPaths != null && Reference.IsFrameworkFile(reference.FullPath, _frameworkPaths))) 2179foreach (KeyValuePair<AssemblyNameExtension, Reference> assemblyNameWithReference in References) 2182Reference reference = assemblyNameWithReference.Value; 2342Reference leftConflictReference = assemblyReference0.reference; 2343Reference rightConflictReference = assemblyReference1.reference; 2430Reference victimReference = victim == 0 ? leftConflictReference : rightConflictReference; 2431Reference victorReference = victor == 0 ? leftConflictReference : rightConflictReference; 2454if (redistListVersion != null && assemblyName.Version >= redistListVersion && !Reference.IsFrameworkFile(fullPath, frameworkPaths)) 2598foreach (KeyValuePair<AssemblyNameExtension, Reference> kvp in References) 2601Reference reference = kvp.Value; 2672private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName, Reference reference, AssemblyNameExtension assemblyName) 2872if (Reference.IsFrameworkFile(reference.FullPath, _frameworkPaths) || (_installedAssemblies?.FrameworkAssemblyEntryInRedist(assemblyName) == true)) 3067internal void LogHigherVersionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3082internal void LogHigherVersionUnresolveDueToAttribute(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3097internal void LogAnotherFrameworkUnResolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3112internal void LogProfileExclusionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework) 3133internal ReferenceAssemblyExtensionPair(Reference key, AssemblyNameExtension value) 3139internal Reference Key { get; } 3155foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References) 3158Reference 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;