mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
versioning
This commit is contained in:
parent
2002ea9d6f
commit
9a3e324265
4 changed files with 19 additions and 6 deletions
|
@ -2,9 +2,6 @@
|
|||
{
|
||||
public class ApplicationSettings
|
||||
{
|
||||
public string Branch { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string OmbiService { get; set; }
|
||||
public string FriendlyVersion { get; set; }
|
||||
}
|
||||
}
|
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