Files
BusinessMgr-2019/SaBusMgrStandardBase/Base/App/Sbm-Version.cs
T

55 lines
2.1 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.1.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.1 19-Feb-25 Portal Transactions.
//-------------------------------------------------------------------
// 3.0.0 Jul-2021 Initial demo test version.
// 02-Feb-25 Initial live deployment.
// 3.0.0.1 08-Feb-25 Demo repository registration.
// 3.0.0.2 08-Feb-25 Production SMTP config.
// 3.0.0.3 10-Feb-25 Osie feedback #1. Control Repository Schema, Logs.
// 3.0.0.4 11-Feb-25 Portal Commodity Sales properties. Control Index population.
// 3.0.0.5 12-Feb-25 Portal Security forms tidy. Default Commodity type. Code Types and Codes.
// 3.0.0.6 13-Feb-25 Main page layouts. Demo Account registration.
// 3.0.0.7 17-Feb-25 Demo Transaction population.
//-------------------------------------------------------------------
}
//=======================================================================
}