3 instantiations of Reference
Microsoft.Build.Tasks.Core (3)
AssemblyDependency\ReferenceTable.cs (3)
576
var reference = new
Reference
(_isWinMDFile, _fileExists, _getRuntimeVersion);
866
var reference = new
Reference
(_isWinMDFile, _fileExists, _getRuntimeVersion);
1135
Reference newReference = new
Reference
(_isWinMDFile, _fileExists, _getRuntimeVersion);
118 references to Reference
Microsoft.Build.Tasks.Core (118)
AssemblyDependency\AssemblyNameReference.cs (2)
17
internal
Reference
reference;
38
public static AssemblyNameReference Create(AssemblyNameExtension assemblyName,
Reference
reference)
AssemblyDependency\Reference.cs (12)
32
private HashSet<
Reference
> _dependees = new HashSet<
Reference
>();
38
private HashSet<
Reference
> _dependencies = new HashSet<
Reference
>();
178
foreach (
Reference
dependency in _dependencies)
197
internal void AddDependency(
Reference
dependency)
208
internal void AddDependee(
Reference
dependee)
231
internal void RemoveDependee(
Reference
dependeeToRemove)
239
internal void RemoveDependency(
Reference
dependencyToRemove)
248
internal HashSet<
Reference
> GetDependees()
853
internal void MakeDependentAssemblyReference(
Reference
sourceReference)
1070
Reference
primaryReference = referenceTable.GetReference(primaryAssemblyName);
AssemblyDependency\ReferenceTable.cs (75)
160
internal delegate void LogExclusionReason(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework);
370
internal 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
403
internal void AddReference(AssemblyNameExtension assemblyName,
Reference
reference)
406
if (References.TryGetValue(assemblyName, out
Reference
referenceGoingToBeReplaced))
428
internal
Reference
GetReference(AssemblyNameExtension assemblyName)
431
References.TryGetValue(assemblyName, out
Reference
referenceToReturn);
442
Reference
reference,
576
var
reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion);
866
var
reference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion);
906
Reference
reference)
951
Reference
reference)
997
Reference
reference)
1012
Reference
reference,
1102
Reference
reference,
1103
List<KeyValuePair<AssemblyNameExtension,
Reference
>> newEntries)
1130
Reference
existingReference = GetReference(unifiedDependency.PostUnified);
1135
Reference
newReference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion);
1150
var newEntry = new KeyValuePair<AssemblyNameExtension,
Reference
>(unifiedDependency.PostUnified, newReference);
1224
internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders,
Reference
parentReference)
1259
Reference
reference)
1281
foreach (
Reference
parentReference in reference.GetDependees())
1368
var goodReferences = new Dictionary<AssemblyNameExtension,
Reference
>(AssemblyNameComparer.GenericComparer);
1371
var removedReferences = new List<
Reference
>();
1374
var dependencyGraph = new Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>>();
1382
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1385
Reference
assemblyReference = assembly.Value;
1446
foreach (
Reference
reference in removedReferences)
1462
private static void AddToDependencyGraph(Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1465
foreach (
Reference
dependee in assemblyReference.GetDependees())
1482
private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension,
Reference
> goodReferences, List<
Reference
> removedReferences, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1506
Reference
primaryAssemblyReference = References[primaryAssemblyName];
1531
private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<
Reference
> removedReferences, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1547
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1549
Reference
assemblyReference = assembly.Value;
1566
private static void RemoveDependencies(
Reference
removedReference, Dictionary<AssemblyNameExtension,
Reference
> referenceList, Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>> dependencyList)
1578
Reference
reference = dependency.Key;
1661
foreach (
Reference
reference in References.Values)
1686
var newEntries = new List<KeyValuePair<AssemblyNameExtension,
Reference
>>();
1688
foreach (
Reference
reference in References.Values)
1769
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> newEntry in newEntries)
1783
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1785
Reference
reference = assembly.Value;
1867
Reference
reference = assemblyNameReference.reference;
1947
internal bool MarkReferencesExcludedDueToOtherFramework(AssemblyNameExtension assemblyName,
Reference
reference)
2093
internal void MarkReferenceWithHighestVersionInCurrentRedistList(AssemblyNameExtension assemblyName,
Reference
reference)
2111
internal bool MarkReferenceForExclusionDueToHigherThanCurrentFramework(AssemblyNameExtension assemblyName,
Reference
reference)
2142
internal bool MarkReferenceForExclusionDueToHigherThanCurrentFrameworkAttribute(AssemblyNameExtension assemblyName,
Reference
reference)
2147
if (!(reference.IsResolved && _fileExists(reference.FullPath)) || reference.IsPrerequisite || (_frameworkPaths != null &&
Reference
.IsFrameworkFile(reference.FullPath, _frameworkPaths)))
2179
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assemblyNameWithReference in References)
2182
Reference
reference = assemblyNameWithReference.Value;
2342
Reference
leftConflictReference = assemblyReference0.reference;
2343
Reference
rightConflictReference = assemblyReference1.reference;
2430
Reference
victimReference = victim == 0 ? leftConflictReference : rightConflictReference;
2431
Reference
victorReference = victor == 0 ? leftConflictReference : rightConflictReference;
2454
if (redistListVersion != null && assemblyName.Version >= redistListVersion && !
Reference
.IsFrameworkFile(fullPath, frameworkPaths))
2598
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> kvp in References)
2601
Reference
reference = kvp.Value;
2672
private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName,
Reference
reference, AssemblyNameExtension assemblyName)
2872
if (
Reference
.IsFrameworkFile(reference.FullPath, _frameworkPaths) || (_installedAssemblies?.FrameworkAssemblyEntryInRedist(assemblyName) == true))
3067
internal void LogHigherVersionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3082
internal void LogHigherVersionUnresolveDueToAttribute(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3097
internal void LogAnotherFrameworkUnResolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3112
internal void LogProfileExclusionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3133
internal ReferenceAssemblyExtensionPair(
Reference
key, AssemblyNameExtension value)
3139
internal
Reference
Key { get; }
3155
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
3158
Reference
reference = assembly.Value;
AssemblyDependency\ResolveAssemblyReference.cs (29)
1080
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in dependencyTable.References)
1084
Reference
primaryCandidate = assembly.Value;
1093
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in dependencyTable.References)
1097
Reference
dependencyCandidate = assembly.Value;
1106
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in dependencyTable.References)
1110
Reference
conflictCandidate = assembly.Value;
1123
Reference
victor = dependencyTable.GetReference(conflictCandidate.ConflictVictorName);
1172
Reference
reference = idealAssemblyRemappingsIdentities[i].reference;
1192
Reference
victimReference = dependencyTable.GetReference(conflictVictim);
1326
private void LogReferenceDependenciesAndSourceItemsToStringBuilder(string fusionName,
Reference
conflictCandidate, StringBuilder log, bool referenceIsUnified = false)
1351
foreach (
Reference
dependeeReference in conflictCandidate.GetDependees())
1362
private void LogDependeeReferenceToStringBuilder(
Reference
dependeeReference, StringBuilder log)
1378
private void LogReference(
Reference
reference, string fusionName)
1426
private MessageImportance ChooseReferenceLoggingImportance(
Reference
reference)
1621
private void LogPrimaryOrDependency(
Reference
reference, string fusionName, MessageImportance importance)
1685
private void LogReferenceErrors(
Reference
reference, MessageImportance importance)
1747
private void LogFullName(
Reference
reference, MessageImportance importance)
1765
private void LogAssembliesConsideredAndRejected(
Reference
reference, string fusionName, MessageImportance importance)
1864
private void LogDependees(
Reference
reference, MessageImportance importance)
1881
private void LogRelatedFiles(
Reference
reference, MessageImportance importance)
1900
private void LogSatellites(
Reference
reference, MessageImportance importance)
1913
private void LogScatterFiles(
Reference
reference, MessageImportance importance)
1926
private void LogCopyLocalState(
Reference
reference, MessageImportance importance)
1979
private void LogImageRuntime(
Reference
reference, MessageImportance importance)
2002
private void LogConflict(
Reference
reference, string fusionName, StringBuilder log)
2542
foreach (
var
resolvedReference in dependencyTable.References.Values)
2598
if (fileExists(item.ItemSpec) && !
Reference
.IsFrameworkFile(item.ItemSpec, _targetFrameworkDirectories))
2678
private AssemblyNameExtension[] GetDependencies(
Reference
resolvedReference, FileExists fileExists, GetAssemblyMetadata getAssemblyMetadata, ConcurrentDictionary<string, AssemblyMetadata> assemblyMetadataCache)
2992
Reference
reference = idealAssemblyRemappedReferences[i].reference;