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);
1134
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)
996
Reference
reference)
1011
Reference
reference,
1101
Reference
reference,
1102
List<KeyValuePair<AssemblyNameExtension,
Reference
>> newEntries)
1129
Reference
existingReference = GetReference(unifiedDependency.PostUnified);
1134
Reference
newReference = new Reference(_isWinMDFile, _fileExists, _getRuntimeVersion);
1149
var newEntry = new KeyValuePair<AssemblyNameExtension,
Reference
>(unifiedDependency.PostUnified, newReference);
1223
internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders,
Reference
parentReference)
1258
Reference
reference)
1280
foreach (
Reference
parentReference in reference.GetDependees())
1367
var goodReferences = new Dictionary<AssemblyNameExtension,
Reference
>(AssemblyNameComparer.GenericComparer);
1370
var removedReferences = new List<
Reference
>();
1373
var dependencyGraph = new Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>>();
1381
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1384
Reference
assemblyReference = assembly.Value;
1445
foreach (
Reference
reference in removedReferences)
1461
private static void AddToDependencyGraph(Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1464
foreach (
Reference
dependee in assemblyReference.GetDependees())
1481
private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension,
Reference
> goodReferences, List<
Reference
> removedReferences, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1505
Reference
primaryAssemblyReference = References[primaryAssemblyName];
1530
private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<
Reference
> removedReferences, AssemblyNameExtension assemblyName,
Reference
assemblyReference)
1546
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1548
Reference
assemblyReference = assembly.Value;
1565
private static void RemoveDependencies(
Reference
removedReference, Dictionary<AssemblyNameExtension,
Reference
> referenceList, Dictionary<
Reference
, List<ReferenceAssemblyExtensionPair>> dependencyList)
1577
Reference
reference = dependency.Key;
1660
foreach (
Reference
reference in References.Values)
1685
var newEntries = new List<KeyValuePair<AssemblyNameExtension,
Reference
>>();
1687
foreach (
Reference
reference in References.Values)
1768
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> newEntry in newEntries)
1782
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
1784
Reference
reference = assembly.Value;
1866
Reference
reference = assemblyNameReference.reference;
1946
internal bool MarkReferencesExcludedDueToOtherFramework(AssemblyNameExtension assemblyName,
Reference
reference)
2092
internal void MarkReferenceWithHighestVersionInCurrentRedistList(AssemblyNameExtension assemblyName,
Reference
reference)
2110
internal bool MarkReferenceForExclusionDueToHigherThanCurrentFramework(AssemblyNameExtension assemblyName,
Reference
reference)
2141
internal bool MarkReferenceForExclusionDueToHigherThanCurrentFrameworkAttribute(AssemblyNameExtension assemblyName,
Reference
reference)
2146
if (!(reference.IsResolved && _fileExists(reference.FullPath)) || reference.IsPrerequisite || (_frameworkPaths != null &&
Reference
.IsFrameworkFile(reference.FullPath, _frameworkPaths)))
2178
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assemblyNameWithReference in References)
2181
Reference
reference = assemblyNameWithReference.Value;
2341
Reference
leftConflictReference = assemblyReference0.reference;
2342
Reference
rightConflictReference = assemblyReference1.reference;
2429
Reference
victimReference = victim == 0 ? leftConflictReference : rightConflictReference;
2430
Reference
victorReference = victor == 0 ? leftConflictReference : rightConflictReference;
2453
if (redistListVersion != null && assemblyName.Version >= redistListVersion && !
Reference
.IsFrameworkFile(fullPath, frameworkPaths))
2597
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> kvp in References)
2600
Reference
reference = kvp.Value;
2671
private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName,
Reference
reference, AssemblyNameExtension assemblyName)
2871
if (
Reference
.IsFrameworkFile(reference.FullPath, _frameworkPaths) || (_installedAssemblies?.FrameworkAssemblyEntryInRedist(assemblyName) == true))
3066
internal void LogHigherVersionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3081
internal void LogHigherVersionUnresolveDueToAttribute(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3096
internal void LogAnotherFrameworkUnResolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3111
internal void LogProfileExclusionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName,
Reference
reference, ITaskItem referenceItem, string targetedFramework)
3132
internal ReferenceAssemblyExtensionPair(
Reference
key, AssemblyNameExtension value)
3138
internal
Reference
Key { get; }
3154
foreach (KeyValuePair<AssemblyNameExtension,
Reference
> assembly in References)
3157
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;