This commit is contained in:
tidusjar 2021-04-07 20:27:24 +01:00
parent 1d5b6f3c89
commit 5bd85a3aac
3 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,5 @@
using Microsoft.Extensions.PlatformAbstractions;
using System.Linq;
using System.Reflection;
namespace Ombi.Helpers
@ -8,7 +9,8 @@ namespace Ombi.Helpers
public static string GetRuntimeVersion()
{
ApplicationEnvironment app = PlatformServices.Default.Application;
return app.ApplicationVersion;
var split = app.ApplicationVersion.Split('.');
return string.Join('.', split.Take(3));
}
}
}