mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
parent
2e0beba738
commit
2b5e5282bd
5 changed files with 20 additions and 20 deletions
|
@ -1,13 +1,15 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Ombi.Helpers
|
||||
{
|
||||
public static class AssemblyHelper
|
||||
{
|
||||
public static string GetRuntimeVersion() =>
|
||||
Assembly.GetEntryAssembly()
|
||||
public static string GetRuntimeVersion()
|
||||
{
|
||||
var version = Assembly.GetEntryAssembly()
|
||||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
|
||||
.InformationalVersion;
|
||||
return version.Equals("1.0.0") ? "3.0.0-DotNetCore" : version;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue