Skip to content

Commit

Permalink
Fixed version parsing issue on .NET Framework 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibpatel committed Nov 16, 2017
1 parent f726215 commit e40587a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion AutoUpdater.NET/AutoUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,14 @@ private static void BackgroundWorkerDoWork(object sender, DoWorkEventArgs e)
{
XmlNode appCastVersion = item.SelectSingleNode("version");

Version.TryParse(appCastVersion?.InnerText, out CurrentVersion);
try
{
CurrentVersion = new Version(appCastVersion?.InnerText);
}
catch (Exception)
{
CurrentVersion = null;
}

args.CurrentVersion = CurrentVersion;

Expand Down
2 changes: 1 addition & 1 deletion AutoUpdater.NET/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified AutoUpdater.NET/Resources/ZipExtractor.exe
Binary file not shown.

0 comments on commit e40587a

Please sign in to comment.