public override void Reset() { AutoUpdateAssemblyVersion = false; AutoUpdateFileVersion = false; BuildAction = BuildActionType.Both; var versioningStyle = VersioningStyle.GetDefaultGlobalVariable(); VersioningStyle.FromGlobalVariable(versioningStyle); IsUniversalTime = false; StartDate = new DateTime(2000, 1, 1); ReplaceNonNumerics = true; IncrementBeforeBuild = true; DetectChanges = true; Apply = ApplyGlobalSettings.OnlyWhenChosen; }
public override void Load() { var vs = new VersioningStyle(); vs.FromGlobalVariable( $"{Settings.Default.GlobalMajor}.{Settings.Default.GlobalMinor}.{Settings.Default.GlobalBuild}.{Settings.Default.GlobalRevision}"); VersioningStyle = vs; BuildAction = (BuildActionType)Enum.Parse(typeof(BuildActionType), Settings.Default.GlobalBuildAction); AutoUpdateAssemblyVersion = Settings.Default.GlobalAutoUpdateAssemblyVersion; AutoUpdateFileVersion = Settings.Default.GlobalAutoUpdateFileVersion; ReplaceNonNumerics = Settings.Default.GlobalReplaceNonNumeric; IsUniversalTime = Settings.Default.GlobalUseUniversalClock; IncrementBeforeBuild = Settings.Default.GlobalIncrementBeforeBuild; StartDate = Settings.Default.GlobalStartDate; DetectChanges = Settings.Default.DetectChanges; Apply = (ApplyGlobalSettings)Enum.Parse(typeof(ApplyGlobalSettings), Settings.Default.GlobalApply); }