示例#1
0
 public Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>()
     {
         { "number", MajorMinorPatch.ToString() },
         { "prerelease", Prerelease },
         { "build", Build }
     });
 }
示例#2
0
        private string RetrieveVersion()
        {
            string features = Features.ToString();

            return(string.Format(
                       CultureInfo.InvariantCulture,
                       "{0}-{1}-{2} ({3} - {4})",
                       MajorMinorPatch.ToString(3),
                       LibGit2SharpCommitSha,
                       LibGit2CommitSha,
                       NativeMethods.ProcessorArchitecture,
                       features));
        }