mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixed: Update from version in logs (#2695)
* Fixed: Update from version in logs Fixes #2694 (cherry picked from commit bc3e3714b97dec19091e45324d9f2b550f1dbbd5) * fixup! Fixed: Update from version in logs Closes #2700 * fixup! Fixed: Update from version in logs
This commit is contained in:
parent
26c8259566
commit
979374d07b
1 changed files with 2 additions and 2 deletions
|
@ -22,13 +22,13 @@ namespace NzbDrone.Update.UpdateEngine
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var targetExecutable = Path.Combine(targetFolder, "Lidarr.exe");
|
var targetExecutable = Path.Combine(targetFolder, "Lidarr.dll");
|
||||||
|
|
||||||
if (File.Exists(targetExecutable))
|
if (File.Exists(targetExecutable))
|
||||||
{
|
{
|
||||||
var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable);
|
var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(targetExecutable);
|
||||||
|
|
||||||
return versionInfo.FileVersion;
|
return versionInfo.ProductVersion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue