!wip fixed some things with the updater UI #1460 #865

This commit is contained in:
Jamie.Rees 2017-09-22 11:36:10 +01:00
parent 2e0beba738
commit 2b5e5282bd
5 changed files with 20 additions and 20 deletions

View file

@ -1,13 +1,15 @@
using System;
using System.Reflection;
using System.Reflection;
namespace Ombi.Helpers
{
public static class AssemblyHelper
{
public static string GetRuntimeVersion() =>
Assembly.GetEntryAssembly()
public static string GetRuntimeVersion()
{
var version = Assembly.GetEntryAssembly()
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
.InformationalVersion;
return version.Equals("1.0.0") ? "3.0.0-DotNetCore" : version;
}
}
}