46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
|
{
|
|
//=======================================================================
|
|
static partial class Sbm
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Application version.
|
|
//-------------------------------------------------------------------
|
|
public static class Version
|
|
{
|
|
private static String version { get; } = "3.0.0.0";
|
|
// Retrieve version.
|
|
public static String GetFullVersion() { return version; }
|
|
public static String GetAppVersion()
|
|
{
|
|
if (!SbmSystem.DebugMode)
|
|
{
|
|
try
|
|
{
|
|
// Live instance version is only first 3 elements.
|
|
String[] versionElements = version.Split('.');
|
|
return String.Join(".", versionElements.Take(3));
|
|
}
|
|
catch (Exception exc) { SaLogger.Warn("Sbm.Version.ToString " + ExceptionUtil.GetErrorStateMessage(exc)); }
|
|
}
|
|
return version;
|
|
}
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Version history.
|
|
//-------------------------------------------------------------------
|
|
// 3.0.0 ?-Jul-2021 Initial demo test version.
|
|
// - .
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|