Skip to content

Commit 24bb1d2

Browse files
Frank Robijnjosesimoes
authored andcommitted
9.99.999.9999
1 parent 0eb404a commit 24bb1d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/VersionCop/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class Program
1818
{
1919
private static IEnumerable<SourceRepository> _nugetRepositories;
2020
private static DependencyInfoResource _dependencyInfoResourceNuGet;
21-
private static readonly string _versionReplacementValue = $"9.99.999.9999+{Guid.NewGuid():N}";
2221

2322
/// <param name="solutionToCheck">Path to the solution to check.</param>
2423
/// <param name="workingDirectory">Path of the working directory where solutions will be searched.</param>
@@ -783,7 +782,7 @@ private static NuspecReader GetNuspecReader(string nuspecFileName)
783782
// The replacement value is unique, so it will not match any literal version value.
784783
// The assumption is that all packages share the same value of $version$
785784
// at the time of packaging.
786-
nuspecAsText = nuspecAsText.Replace("$version$", _versionReplacementValue);
785+
nuspecAsText = nuspecAsText.Replace("$version$", "9.99.999.9999");
787786

788787
return new NuspecReader(XDocument.Parse(nuspecAsText));
789788
}

0 commit comments

Comments
 (0)