1 instantiation of VersionFormatter
NuGet.Versioning (1)
VersionFormatter.cs (1)
18
public static readonly VersionFormatter Instance =
new
();
21 references to VersionFormatter
Microsoft.NET.Build.Containers (1)
Tasks\ComputeDotnetBaseImageAndTag.cs (1)
345
private string ParseSemVerToMajorMinor(string semver) => SemanticVersion.Parse(semver).ToString("x.y",
VersionFormatter
.Instance);
NuGet.Commands (2)
CommandRunners\PackCommandRunner.cs (2)
279
string version =
VersionFormatter
.Instance.Format("V", builder.Version,
VersionFormatter
.Instance);
NuGet.Versioning (18)
FloatRange.cs (1)
406
sb.AppendFormat(
VersionFormatter
.Instance, "{0:V}-{1}*", MinVersion, _releasePrefix);
SemanticVersionBase.cs (2)
20
return ToString("N",
VersionFormatter
.Instance);
30
return ToString("F",
VersionFormatter
.Instance);
VersionFormatter.cs (1)
18
public static readonly
VersionFormatter
Instance = new();
VersionRangeFormatter.cs (14)
81
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
87
VersionFormatter
.AppendNormalized(builder, range.MaxVersion);
123
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
133
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
157
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
165
VersionFormatter
.AppendNormalized(builder, range.MaxVersion);
180
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
190
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
208
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
216
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
234
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
241
VersionFormatter
.AppendNormalized(builder, range.MaxVersion);
271
VersionFormatter
.AppendNormalized(builder, range.MinVersion);
317
VersionFormatter
.AppendNormalized(builder, version);