31 references to Version
Microsoft.Build (17)
AssemblyNameExtension.cs (11)
246isSimpleName = ((Version == null) && (CultureInfo == null) && (GetPublicKeyToken() == null) && (!hasProcessorArchitectureInFusionName)); 464if (this.Version != that.Version) 466if (this.Version == null) 473return this.Version.CompareTo(that.Version); 722if (!ignoreVersion && (this.Version != that.Version)) 924if ((comparisonFlags & PartialComparisonFlags.Version) != 0 && Version != null && this.Version != that.Version)
AssemblyNameReverseVersionComparer.cs (6)
51if (x.Version != y.Version) 53if (y.Version == null) 58else if (x.Version == null) 67int result = y.Version.CompareTo(x.Version);
Microsoft.Build.Engine.UnitTests (14)
AssemblyNameEx_Tests.cs (14)
178&& a1.Version != a2.Version) 180if (a1.Version == null) 187Assert.Equal(a1.Version.CompareTo(a2.Version), result); 210Assert.True(a1.Version.Equals(newVersion)); 356Assert.True(extension.Version.Equals(new Version("2.0.0.0"))); 362Assert.True(extension.Version.Equals(new Version("2.0.0.0"))); 368Assert.True(extension.Version is null); 374Assert.True(extension.Version is null); 380Assert.True(extension.Version is null); 392Assert.True(extension.Version.Equals(new Version("2.0.0.0"))); 400Assert.True(extension.Version.Equals(new Version("2.0.0.0"))); 443if (assemblyToCompare.Version != null)