public override void Save()
        {
            Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_buildVersioningStyle,
                                              VersioningStyle.ToGlobalVariable(),
                                              VersioningStyle.GetDefaultGlobalVariable());
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_updateAssemblyVersion,
                                              AutoUpdateAssemblyVersion.ToString(),
                                              "false");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_updateFileVersion,
                                              AutoUpdateFileVersion.ToString(),
                                              "false");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_buildAction,
                                              BuildAction.ToString(),
                                              "Both");
            var startDate = $"{StartDate.Year}/{StartDate.Month}/{StartDate.Day}";

            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_startDate,
                                              startDate,
                                              "2000/01/01");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_replaceNonNumerics,
                                              ReplaceNonNumerics.ToString(),
                                              "true");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_incrementBeforeBuild,
                                              IncrementBeforeBuild.ToString(),
                                              "true");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_assemblyInfoFilename,
                                              AssemblyInfoFilename,
                                              "");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_configurationName,
                                              ConfigurationName,
                                              "Any");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_useGlobalSettings,
                                              UseGlobalSettings.ToString(),
                                              "false");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_useUniversalClock,
                                              IsUniversalTime.ToString(),
                                              "false");
            GlobalVariables.SetGlobalVariable(SolutionItem.Globals,
                                              Resources.GlobalVarName_detectChanges,
                                              DetectChanges.ToString(),
                                              "true");
        }
コード例 #2
0
 public void SetGlobalVariable(string varName, string value)
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     GlobalVariables.SetGlobalVariable(Globals, varName, value);
 }
コード例 #3
0
 public void SetGlobalVariable(string varName, string value)
 {
     GlobalVariables.SetGlobalVariable(Globals, varName, value);
 }