66 references to Version
Microsoft.Build.Tasks.Core (52)
AssemblyDependency\AssemblyNameReferenceAscendingVersionComparer.cs (2)
32Version v1 = i1.assemblyName.Version; 33Version v2 = i2.assemblyName.Version;
AssemblyDependency\FrameworkPathResolver.cs (3)
78if (assemblyNameToUse.Version == null && installedAssemblies != null) 87if (current.Version?.CompareTo(assemblyNameToUse.Version) > 0)
AssemblyDependency\InstalledAssemblies.cs (6)
43unifiedVersion = assemblyName.Version; 56if (assemblyName.Version == null) 71if (assemblyName.Version <= highestVersionFromRedistList.AssemblyNameExtension.Version || assemblyName.Version.Major == 255) 73unifiedVersion = highestVersionFromRedistList.AssemblyNameExtension.Version;
AssemblyDependency\ReferenceTable.cs (17)
1064if (!isMscorlib || dependentAssemblies[i].Version.Major != 255) 1140newReference.AddPreUnificationVersion(reference.FullPath, unifiedDependency.PreUnified.Version, unifiedDependency.UnificationReason); 1170existingReference.AddPreUnificationVersion(reference.FullPath, unifiedDependency.PreUnified.Version, unifiedDependency.UnificationReason); 1894Version lastVersion = conflictingReference.assemblyName.Version; 2102reference.ExclusionListLoggingProperties.HighestVersionInRedist = highestInRedistList.AssemblyNameExtension.Version; 2381Version leftConflictVersion = assemblyReference0.assemblyName.Version; 2382Version rightConflictVersion = assemblyReference1.assemblyName.Version; 2452Version redistListVersion = redistListEntry.AssemblyNameExtension.Version; 2454if (redistListVersion != null && assemblyName.Version >= redistListVersion && !Reference.IsFrameworkFile(fullPath, frameworkPaths)) 2481unifiedVersion = assemblyName.Version; 2488if (assemblyName.Version == null) 2504if (assemblyName.Version >= bindingRedirect.OldVersionLow && assemblyName.Version <= bindingRedirect.OldVersionHigh) 2507if (assemblyName.Version != bindingRedirect.NewVersion) 2530if (unifiedVersion != assemblyName.Version) 2533return assemblyName.Version != unifiedVersion; 3160reference.ReferenceVersion = assemblyName.Version;
AssemblyDependency\ResolveAssemblyReference.cs (1)
1198conflictVictim.Version,
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);
RedistList.cs (6)
157if (assembly.Version <= entry.AssemblyNameExtension.Version) 407if (matchNotConsideringVersion && highestVersionInRedist.Version <= secondAssembly.Version) 920int returnValue = firstAssemblyName.Version.CompareTo(secondAssemblyName.Version);
Microsoft.Build.Tasks.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)