mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: Updater version number logging
This commit is contained in:
parent
9458f4c796
commit
2bf87691bc
@ -22,13 +22,13 @@ public string GetExistingVersion(string targetFolder)
|
||||
{
|
||||
try
|
||||
{
|
||||
var targetExecutable = Path.Combine(targetFolder, "Sonarr.exe");
|
||||
var targetExecutable = Path.Combine(targetFolder, "Sonarr.dll");
|
||||
|
||||
if (File.Exists(targetExecutable))
|
||||
{
|
||||
var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable);
|
||||
|
||||
return versionInfo.FileVersion;
|
||||
return versionInfo.ProductVersion;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
Reference in New Issue
Block a user