1 write to Version
NuGet.Versioning (1)
NuGetVersion.cs (1)
151Version = NormalizeVersionValue(version);
30 references to Version
dotnet (1)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
242.Where(f => f.Version < new NuGetVersion(Product.Version).Version)
Microsoft.DotNet.Build.Tasks.Packaging (6)
GetLastStablePackage.cs (3)
89latestPackages[packageId] = nuGetVersion?.Version; 145var latestVersion = (DoNotAllowVersionsFromSameRelease) ? VersionUtility.As2PartVersion(nuGetVersion?.Version) : nuGetVersion?.Version;
NuGetUtility.cs (1)
62Version threePartVersion = VersionUtility.As3PartVersion(packageMetadata.Identity.Version.Version);
UpdatePackageIndex.cs (1)
280var packageVersion = VersionUtility.As3PartVersion(version.Version);
ValidatePackage.cs (1)
391var thisPackageVersion = VersionUtility.As3PartVersion(NuGetVersion.Parse(PackageVersion).Version);
Microsoft.DotNet.Build.Tasks.Workloads (3)
Swix\SwixComponent.cs (2)
129Dependencies.Add(new SwixDependency($"{pack.Id.ToString().Replace(ShortNames)}.{pack.Version}", new NuGetVersion(pack.Version).Version, maxVersion: null)); 190component.AddDependency(packGroupId, new NuGetVersion(manifest.Version).Version, maxVersion: null);
WorkloadPackageBase.cs (1)
168public Version Version => Identity.Version.Version;
Microsoft.NET.Build.Tasks (1)
GetAssemblyVersion.cs (1)
38AssemblyVersion = nugetVersion.Version.ToString();
NuGet.CommandLine.XPlat (2)
_generated\16\PackageSearchJsonContext.NuGetVersion.g.cs (2)
58Getter = static obj => ((global::NuGet.Versioning.NuGetVersion)obj).Version, 330global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Versioning.NuGetVersion)value).Version, Version);
NuGet.Packaging (7)
PackageExtraction\PackagePathHelper.cs (7)
136&& version.Version.Revision < 1) 145var partialName = version.Version.Build < 1 ? 146string.Join(".", packageId, version.Version.Major, version.Version.Minor) : 147string.Join(".", packageId, version.Version.Major, version.Version.Minor, version.Version.Build);
NuGet.Protocol (2)
_generated\10\JsonContext.NuGetVersion.g.cs (2)
58Getter = static obj => ((global::NuGet.Versioning.NuGetVersion)obj).Version, 330global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Versioning.NuGetVersion)value).Version, Version);
NuGet.Versioning (8)
NuGetVersion.cs (2)
31: this(version == null ? throw new ArgumentNullException(nameof(version)) : version.Version, version.ReleaseLabels, version.Metadata, version.OriginalVersion) 152Revision = Version.Revision;
VersionComparer.cs (4)
245result = legacyX.Version.CompareTo(legacyY.Version); 248&& legacyX.Version.Revision > 0) 253&& legacyY.Version.Revision > 0)
VersionFormatter.cs (2)
99builder.AppendInt(version is NuGetVersion nuGetVersion && nuGetVersion.IsLegacyVersion ? nuGetVersion.Version.Revision : 0); 148builder.AppendInt(nuGetVersion.Version.Revision);