36 lines
820 B
C#
36 lines
820 B
C#
namespace Store.Management.Framework.Configs;
|
|
|
|
/// <summary>
|
|
/// 应用级常量配置:代码标识与显示名称分离。
|
|
/// </summary>
|
|
public static class AppConfig
|
|
{
|
|
/// <summary>代码用软件名称(程序集/目录/Mutex 等标识)。</summary>
|
|
public const string AppName = "Store.Management";
|
|
|
|
/// <summary>显示与输出用软件名称(启动页、对话框标题、安装器显示名等)。</summary>
|
|
public const string AppDisplayName = "Store.Management";
|
|
|
|
/// <summary>是否是发布版本。</summary>
|
|
public static bool IsRelease
|
|
{
|
|
get
|
|
{
|
|
#if RELEASE
|
|
return true;
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
}
|
|
|
|
/// <summary>当前构建模式显示名(Release / Debug)。</summary>
|
|
public static string BuildMode
|
|
{
|
|
get
|
|
{
|
|
return IsRelease ? "Release" : "Debug";
|
|
}
|
|
}
|
|
}
|