versioning

This commit is contained in:
Jamie.Rees 2017-08-31 12:23:38 +01:00
parent 2002ea9d6f
commit 9a3e324265
4 changed files with 19 additions and 6 deletions

View file

@ -0,0 +1,15 @@
using System;
using System.Reflection;
namespace Ombi.Helpers
{
public static class AssemblyHelper
{
public static string GetRuntimeVersion() =>
Assembly.GetEntryAssembly().GetType()
.GetTypeInfo()
.Assembly
.GetCustomAttribute<AssemblyProductAttribute>()
.Product;
}
}