Jackett/src/Jackett.Common/Utils/EnvironmentUtil.cs

27 lines
525 B
C#
Raw Normal View History

2020-02-09 02:35:16 +00:00
using System;
using System.Reflection;
namespace Jackett.Common.Utils
{
public static class EnvironmentUtil
{
2020-02-09 02:35:16 +00:00
public static string JackettVersion
{
get
{
return Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString() ?? "Unknown Version";
}
}
public static bool IsWindows
{
get
{
return Environment.OSVersion.Platform == PlatformID.Win32NT;
}
}
}
}