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
)
1262
if (assemblyName == null && !string.IsNullOrEmpty(rawFileNameCandidate) && reference.
IsPrimary
&& reference.ExternallyResolved)
1314
reference.
IsPrimary
,
1393
if (assemblyReference.
IsPrimary
)
1415
if (!assemblyReference.
IsPrimary
|| (assemblyReference.
IsPrimary
&& isMarkedForExclusion && (dependees?.Count > 1)))
1490
if (assemblyReference.
IsPrimary
)
1549
if (assemblyReference.
IsPrimary
&& assemblyReference.PrimarySourceItem.ItemSpec.Equals(itemSpec, StringComparison.OrdinalIgnoreCase))
1584
if (reference.
IsPrimary
)
2349
if (leftConflictReference.
IsPrimary
&& !rightConflictReference.
IsPrimary
)
2355
else if (!leftConflictReference.
IsPrimary
&& rightConflictReference.
IsPrimary
)
2361
else if (!leftConflictReference.
IsPrimary
&& !rightConflictReference.
IsPrimary
)
2369
bool isNonUnified = leftConflictReference.
IsPrimary
&& rightConflictReference.
IsPrimary
;
2370
bool leftConflictLegacyUnified = !isNonUnified && assemblyReference0.reference.
IsPrimary
;
2371
bool rightConflictLegacyUnified = !isNonUnified && assemblyReference1.reference.
IsPrimary
;
2623
if (!reference.
IsPrimary
&& IsPseudoAssembly(assemblyName.Name))
2632
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)