66 references to Version
Microsoft.Build.Tasks.Core (52)
AssemblyDependency\AssemblyNameReferenceAscendingVersionComparer.cs (2)
32
Version v1 = i1.assemblyName.
Version
;
33
Version v2 = i2.assemblyName.
Version
;
AssemblyDependency\FrameworkPathResolver.cs (3)
78
if (assemblyNameToUse.
Version
== null && installedAssemblies != null)
87
if (current.
Version
?.CompareTo(assemblyNameToUse.
Version
) > 0)
AssemblyDependency\InstalledAssemblies.cs (6)
43
unifiedVersion = assemblyName.
Version
;
56
if (assemblyName.
Version
== null)
71
if (assemblyName.
Version
<= highestVersionFromRedistList.AssemblyNameExtension.
Version
|| assemblyName.
Version
.Major == 255)
73
unifiedVersion = highestVersionFromRedistList.AssemblyNameExtension.
Version
;
AssemblyDependency\ReferenceTable.cs (17)
1064
if (!isMscorlib || dependentAssemblies[i].
Version
.Major != 255)
1140
newReference.AddPreUnificationVersion(reference.FullPath, unifiedDependency.PreUnified.
Version
, unifiedDependency.UnificationReason);
1170
existingReference.AddPreUnificationVersion(reference.FullPath, unifiedDependency.PreUnified.
Version
, unifiedDependency.UnificationReason);
1894
Version lastVersion = conflictingReference.assemblyName.
Version
;
2102
reference.ExclusionListLoggingProperties.HighestVersionInRedist = highestInRedistList.AssemblyNameExtension.
Version
;
2381
Version leftConflictVersion = assemblyReference0.assemblyName.
Version
;
2382
Version rightConflictVersion = assemblyReference1.assemblyName.
Version
;
2452
Version redistListVersion = redistListEntry.AssemblyNameExtension.
Version
;
2454
if (redistListVersion != null && assemblyName.
Version
>= redistListVersion && !Reference.IsFrameworkFile(fullPath, frameworkPaths))
2481
unifiedVersion = assemblyName.
Version
;
2488
if (assemblyName.
Version
== null)
2504
if (assemblyName.
Version
>= bindingRedirect.OldVersionLow && assemblyName.
Version
<= bindingRedirect.OldVersionHigh)
2507
if (assemblyName.
Version
!= bindingRedirect.NewVersion)
2530
if (unifiedVersion != assemblyName.
Version
)
2533
return assemblyName.
Version
!= unifiedVersion;
3160
reference.ReferenceVersion = assemblyName.
Version
;
AssemblyDependency\ResolveAssemblyReference.cs (1)
1198
conflictVictim.
Version
,
AssemblyNameExtension.cs (11)
246
isSimpleName = ((
Version
== null) && (CultureInfo == null) && (GetPublicKeyToken() == null) && (!hasProcessorArchitectureInFusionName));
464
if (this.
Version
!= that.
Version
)
466
if (this.
Version
== null)
473
return this.
Version
.CompareTo(that.
Version
);
722
if (!ignoreVersion && (this.
Version
!= that.
Version
))
924
if ((comparisonFlags & PartialComparisonFlags.Version) != 0 &&
Version
!= null && this.
Version
!= that.
Version
)
AssemblyNameReverseVersionComparer.cs (6)
51
if (x.
Version
!= y.
Version
)
53
if (y.
Version
== null)
58
else if (x.
Version
== null)
67
int result = y.
Version
.CompareTo(x.
Version
);
RedistList.cs (6)
157
if (assembly.
Version
<= entry.AssemblyNameExtension.
Version
)
407
if (matchNotConsideringVersion && highestVersionInRedist.
Version
<= secondAssembly.
Version
)
920
int returnValue = firstAssemblyName.
Version
.CompareTo(secondAssemblyName.
Version
);
Microsoft.Build.Tasks.UnitTests (14)
AssemblyNameEx_Tests.cs (14)
178
&& a1.
Version
!= a2.
Version
)
180
if (a1.
Version
== null)
187
Assert.Equal(a1.
Version
.CompareTo(a2.
Version
), result);
210
Assert.True(a1.
Version
.Equals(newVersion));
356
Assert.True(extension.
Version
.Equals(new Version("2.0.0.0")));
362
Assert.True(extension.
Version
.Equals(new Version("2.0.0.0")));
368
Assert.True(extension.
Version
is null);
374
Assert.True(extension.
Version
is null);
380
Assert.True(extension.
Version
is null);
392
Assert.True(extension.
Version
.Equals(new Version("2.0.0.0")));
400
Assert.True(extension.
Version
.Equals(new Version("2.0.0.0")));
443
if (assemblyToCompare.
Version
!= null)