Skip to content

Commit 60d3b30

Browse files
committed
Version parse
1 parent b6bc925 commit 60d3b30

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SmartImage/Config.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal static void Info()
207207
CliOutput.WriteInfo("Current version: {0}", currentVersion);
208208

209209
var release = LatestRelease();
210-
CliOutput.WriteInfo("Latest version: {0} ({1})", release.Version, release.PublishedAt);
210+
CliOutput.WriteInfo("Latest version: {0} (tag {1}) ({2})", release.Version, release.TagName, release.PublishedAt);
211211

212212
int vcmp = currentVersion.CompareTo(release.Version);
213213

@@ -317,8 +317,9 @@ public ReleaseInfo(string tagName, string htmlUrl, string publishedAt)
317317

318318
// hacky
319319
const string buildRevision = ".0.0";
320-
321-
var parse = System.Version.Parse(tagName + buildRevision);
320+
var versionStr = tagName.Replace("v", string.Empty) + buildRevision;
321+
322+
var parse = System.Version.Parse(versionStr);
322323

323324

324325
Version = parse;

0 commit comments

Comments
 (0)