mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Added latest version code and view. Need to finish the view #11
This commit is contained in:
parent
67ecbbf178
commit
33130589ae
20 changed files with 297 additions and 16 deletions
|
@ -37,5 +37,13 @@ namespace PlexRequests.Helpers
|
|||
var fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
||||
return fvi.FileVersion;
|
||||
}
|
||||
|
||||
public static string GetReleaseVersion()
|
||||
{
|
||||
var assembly = Assembly.GetExecutingAssembly();
|
||||
var fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
||||
var retVersion = "v" + fvi.FileVersion.Substring(0, fvi.FileVersion.Length - 2);
|
||||
return retVersion;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue