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")); }
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")); } }