mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
16 lines
No EOL
433 B
C#
16 lines
No EOL
433 B
C#
using Microsoft.Extensions.PlatformAbstractions;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
|
|
namespace Ombi.Helpers
|
|
{
|
|
public static class AssemblyHelper
|
|
{
|
|
public static string GetRuntimeVersion()
|
|
{
|
|
ApplicationEnvironment app = PlatformServices.Default.Application;
|
|
var split = app.ApplicationVersion.Split('.');
|
|
return string.Join('.', split.Take(3));
|
|
}
|
|
}
|
|
} |