예제 #1
0
        private void SetVersionName()
        {
            VersionName = IsAutomatedDeploy ? DeployedVersion.ToString() : Application.ProductVersion;
            if (IsAutomatedDeploy && InstanceType == InstanceType.Stable)
            {
                VersionName = VersionName.Substring(0, VersionName.LastIndexOf("."));
            }

            var betaText = InstanceType == InstanceType.Stable ? "" : $" ({InstanceType})";

            if (!IsAutomatedDeploy)
            {
                betaText = " (Debug)";
            }

            VersionName = $"v{VersionName}{betaText}";

            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("VersionName"));
        }
예제 #2
0
        private void SetVersionName()
        {
            VersionName = IsAutomatedDeploy ? DeployedVersion.ToString() : Application.ProductVersion;
            if (IsAutomatedDeploy && InstanceType == InstanceType.Stable)
            {
                VersionName = VersionName.Substring(0, VersionName.LastIndexOf("."));
            }

            var betaText = InstanceType == InstanceType.Stable ? "" : string.Format(" ({0})", InstanceType);

            if (!IsAutomatedDeploy)
            {
                betaText = " (Debug)";
            }

            VersionName = string.Format("v{0}{1}", VersionName, betaText);

            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs("VersionName"));
            }
        }