2 writes to IsPrimary
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\Reference.cs (2)
858IsPrimary = false; 888IsPrimary = true;
36 references to IsPrimary
Microsoft.Build.Tasks.Core (36)
AssemblyDependency\Reference.cs (5)
370if (IsPrimary) 622!(IsPrimary && _primarySourceItem == null), "A primary reference must have a primary source item."); 624IsPrimary || _primarySourceItem == null, "Only a primary reference can have a primary source item."); 992if (IsPrimary) 1061if (!IsPrimary && !copyLocalDependenciesWhenParentReferenceInGac)
AssemblyDependency\ReferenceTable.cs (21)
927if (reference.IsPrimary) 1263if (assemblyName == null && !string.IsNullOrEmpty(rawFileNameCandidate) && reference.IsPrimary && reference.ExternallyResolved) 1315reference.IsPrimary, 1394if (assemblyReference.IsPrimary) 1416if (!assemblyReference.IsPrimary || (assemblyReference.IsPrimary && isMarkedForExclusion && (dependees?.Count > 1))) 1491if (assemblyReference.IsPrimary) 1550if (assemblyReference.IsPrimary && assemblyReference.PrimarySourceItem.ItemSpec.Equals(itemSpec, StringComparison.OrdinalIgnoreCase)) 1585if (reference.IsPrimary) 2350if (leftConflictReference.IsPrimary && !rightConflictReference.IsPrimary) 2356else if (!leftConflictReference.IsPrimary && rightConflictReference.IsPrimary) 2362else if (!leftConflictReference.IsPrimary && !rightConflictReference.IsPrimary) 2370bool isNonUnified = leftConflictReference.IsPrimary && rightConflictReference.IsPrimary; 2371bool leftConflictLegacyUnified = !isNonUnified && assemblyReference0.reference.IsPrimary; 2372bool rightConflictLegacyUnified = !isNonUnified && assemblyReference1.reference.IsPrimary; 2624if (!reference.IsPrimary && IsPseudoAssembly(assemblyName.Name)) 2633if (reference.IsPrimary)
AssemblyDependency\ResolveAssemblyReference.cs (10)
1086if (primaryCandidate.IsPrimary && !(primaryCandidate.IsConflictVictim && primaryCandidate.IsCopyLocal)) 1099if (!dependencyCandidate.IsPrimary && !(dependencyCandidate.IsConflictVictim && dependencyCandidate.IsCopyLocal)) 1335if (conflictCandidate.IsPrimary) 1435if (reference.IsPrimary || reference.IsCopyLocal) 1623if (reference.IsPrimary) 1720if (reference.IsPrimary && !dependencyProblem) 1866if (!reference.IsPrimary) 2009Debug.Assert(!reference.IsPrimary, "A primary reference should never lose a conflict because of version. This is an insoluble conflict instead."); 2025if (reference.IsPrimary) 2681if (resolvedReference?.IsPrimary == true && !resolvedReference.IsBadImage)