mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
versioning
This commit is contained in:
parent
2002ea9d6f
commit
9a3e324265
4 changed files with 19 additions and 6 deletions
15
src/Ombi.Helpers/AssemblyHelper.cs
Normal file
15
src/Ombi.Helpers/AssemblyHelper.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue