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