MCPcopy Create free account
hub / github.com/M2Team/NanaGet / GenerateVersionString

Method GenerateVersionString

NanaGet.RefreshPackageVersion/Program.cs:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 static string BuildStartDay = "2022-04-25";
11
12 static string GenerateVersionString()
13 {
14 return string.Format(
15 "{0}.{1}.{2}.0",
16 Version.Major,
17 Version.Minor,
18 DateTime.Today.Subtract(DateTime.Parse(BuildStartDay)).TotalDays);
19 }
20
21 static string RepositoryRoot = GitRepository.GetRootPath();
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected