31 references to Version
Microsoft.Build (17)
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
);
Microsoft.Build.Engine.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)