当前位置: 首页>>代码示例>>C#>>正文


C# vsBuildScope类代码示例

本文整理汇总了C#中vsBuildScope的典型用法代码示例。如果您正苦于以下问题:C# vsBuildScope类的具体用法?C# vsBuildScope怎么用?C# vsBuildScope使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


vsBuildScope类属于命名空间,在下文中一共展示了vsBuildScope类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onBuildBegin

        public void onBuildBegin(vsBuildScope scope, vsBuildAction action)
        {
            dumpState();
            Log.D("VS build begin {scope}, {action}", scope, action);

            prepareForVSBuild();
        }
开发者ID:pragmatrix,项目名称:BuildOnSave,代码行数:7,代码来源:Driver.cs

示例2: OnBuildDone

 private void OnBuildDone(vsBuildScope scope, vsBuildAction action)
 {
     if (this.patternManager.IsOpen)
     {
         this.patternManager.ValidateProductState();
     }
 }
开发者ID:StevenVanDijk,项目名称:NuPattern,代码行数:7,代码来源:ProductStateValidator.cs

示例3: OnBuildDone

            void OnBuildDone(vsBuildScope Scope, vsBuildAction Action)
            {
                if (Scope != vsBuildScope.vsBuildScopeSolution)
                    return;

                DateTime now = DateTime.Now;

                m_timer.Stop();
                TimeSpan ts = m_timer.Elapsed;
                string timeMessage = String.Format("Total solution build time: {0:00}:{1:00}:{2:00}.{3:00} (started {4} {5} and ended {6} {7})\n",
                    ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10, m_start.ToShortDateString(), m_start.ToLongTimeString(), now.ToShortDateString(), now.ToLongTimeString());
                OutputWindowPane pane = Plugin.FindOutputPane(m_plugin.App, "Build");
                pane.OutputString(timeMessage);

                m_timer.Reset();

                if (m_logfilename != "")
                {
                    using (StreamWriter w = new StreamWriter(m_logfilename, true))
                    {
                        string logMessage = String.Format("{0} {1}|{2:00}:{3:00}:{4:00}", now.ToShortDateString(), now.ToLongTimeString(), ts.Hours, ts.Minutes, ts.Seconds );
                        w.WriteLine(logMessage);
                    }
                }
            }
开发者ID:Nexuapex,项目名称:niftyplugins,代码行数:25,代码来源:SolutionBuildTimings.cs

示例4: OnBuildDone

        private void OnBuildDone(vsBuildScope Scope, vsBuildAction Action)
        {
            Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => // Execute after VS finishes its tasks
            {
                FartOptions options = (FartOptions)GetDialogPage(typeof(FartOptions));

                if (options.Enabled)
                {
                    bool isSuccess = _dte.Solution.SolutionBuild.LastBuildInfo == 0;
                    Fart(isSuccess, options);

                    if (isSuccess)
                    {
                        _successfulBuilds++;

                        if (_hasBuildFailed)
                            SetBuildMessage();
                    }
                    else
                    {
                        _hasBuildFailed = true;
                        _successfulBuilds = 0;
                    }
                }

            }), DispatcherPriority.ApplicationIdle, null);
        }
开发者ID:BlueBasher,项目名称:Farticus,代码行数:27,代码来源:FarticusPackage.cs

示例5: OnBuildBegin

 void OnBuildBegin(vsBuildScope Scope, vsBuildAction Action)
 {
     if (Scope != vsBuildScope.vsBuildScopeSolution)
         return;
     m_timer.Start();
     m_start = DateTime.Now;
 }
开发者ID:Nexuapex,项目名称:niftyplugins,代码行数:7,代码来源:SolutionBuildTimings.cs

示例6: BuildDone

        public static void BuildDone(vsBuildScope buildScope, vsBuildAction buildAction)
        {
            Trace.WriteLine("Build done");

            // Once the project has built then try and clean up the files copied into the Bootstrapper
            CopiedFiles.RemoveAll();
        }
开发者ID:Mozketo,项目名称:Suction,代码行数:7,代码来源:BuildHandler.cs

示例7: OnBuildBegin

 private void OnBuildBegin(vsBuildScope scope, vsBuildAction action)
 {
     foreach (Project project in _dte.Solution.Projects)
     {
         Generate(project.ProjectItems);
     }
 }
开发者ID:xiety,项目名称:RunCustomToolsOnBuild,代码行数:7,代码来源:RunCustomToolsOnBuildPackage.cs

示例8: BuildEvents_OnBuildDone

 private void BuildEvents_OnBuildDone(vsBuildScope Scope, vsBuildAction Action)
 {
     this._applicationObject.ToolWindows.ErrorList.ShowErrors = true;
     this._applicationObject.ToolWindows.ErrorList.ShowWarnings = false;
     this._applicationObject.ToolWindows.ErrorList.ShowMessages = false;
     if (this._applicationObject.ToolWindows.ErrorList.ErrorItems.Count == 0)
     {
         foreach (Project item in (Array)this._applicationObject.ActiveSolutionProjects)
         {
             string designRootPath = Path.GetDirectoryName(item.FileName);
             string configFile = designRootPath + "\\EntityDesignConfig.xml";
             if (File.Exists(configFile))
             {
                 try
                 {
                     System.Diagnostics.Process.Start(Path.GetDirectoryName(this.GetType().Assembly.CodeBase).Replace("file:\\", "") + "\\MySoft.Tools.EntityDesign.exe", "\"" + designRootPath + "\"");
                 }
                 catch (Exception ex)
                 {
                     System.Windows.Forms.MessageBox.Show("EntityDesign实体生成工具错误提示:\r\n" + ex.Message);
                 }
             }
         }
     }
 }
开发者ID:rajayaseelan,项目名称:mysoftsolution,代码行数:25,代码来源:Connect.cs

示例9: FireOnBuildBegin

 /// <summary>
 /// The fire on build begin.
 /// </summary>
 /// <param name="scope">
 /// The scope.
 /// </param>
 /// <param name="action">
 /// The action.
 /// </param>
 public void FireOnBuildBegin(vsBuildScope scope, vsBuildAction action)
 {
     if (this.OnBuildBegin != null)
     {
         this.OnBuildBegin(scope, action);
     }
 }
开发者ID:transformersprimeabcxyz,项目名称:_TO-FIRST-stylecop,代码行数:16,代码来源:MockBuildEvents.cs

示例10: OnBuildDone

        private void OnBuildDone(vsBuildScope scope, vsBuildAction action)
        {
            OutputWindowPane BuildOutputPane = null;
            foreach (OutputWindowPane pane in _dte2.ToolWindows.OutputWindow.OutputWindowPanes)
            {
                if (pane.Guid == VSConstants.OutputWindowPaneGuid.BuildOutputPane_string)
                {
                    BuildOutputPane = pane;
                    break;
                }
            }

            if (BuildOutputPane == null)
                return;

            if (ShowBuildReport)
            {
                BuildOutputPane.OutputString("\r\nProjects build report:\r\n");
                BuildOutputPane.OutputString("  Status    | Project [Config|platform]\r\n");
                BuildOutputPane.OutputString(" -----------|---------------------------------------------------------------------------------------------------\r\n");

                foreach (string ReportItem in _projectsBuildReport)
                    BuildOutputPane.OutputString(ReportItem + "\r\n");
            }

            if (ShowElapsedBuildTimeEnabled)
            {
                var elapsed = DateTime.Now - _buildStartTime;
                var time = elapsed.ToString(@"hh\:mm\:ss\.ff");
                var text = string.Format("Time Elapsed {0}", time);

                BuildOutputPane.OutputString("\r\n" + text + "\r\n");
            }
        }
开发者ID:yurikus,项目名称:VSColorOutput,代码行数:34,代码来源:BuildEvents.cs

示例11: BuildEvents_OnBuildBegin

        private void BuildEvents_OnBuildBegin(vsBuildScope scope, vsBuildAction action)
        {
            if (action == vsBuildAction.vsBuildActionClean)
                return;

            Restore();
        }
开发者ID:freeman,项目名称:Paket.VisualStudio,代码行数:7,代码来源:PackageRestorer.cs

示例12: OnBuildBegin

 private void OnBuildBegin(vsBuildScope Scope, vsBuildAction Action)
 {
     if (Action == vsBuildAction.vsBuildActionClean || Action == vsBuildAction.vsBuildActionRebuildAll)
     {
         if (WebLinterPackage.Settings.CleanErrorsOnBuild)
             TableDataSource.Instance.CleanAllErrors();
     }
 }
开发者ID:upta,项目名称:WebAnalyzer,代码行数:8,代码来源:CleanErrorsCommand.cs

示例13: OnBuildBegin

		// Do we need this method?
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Called when [build begin].
		/// </summary>
		/// <param name="scope">The scope.</param>
		/// <param name="action">The action.</param>
		/// <remarks>Do we need this method?</remarks>
		/// ------------------------------------------------------------------------------------
		public void OnBuildBegin(vsBuildScope scope, vsBuildAction action)
		{
#if DEBUG
			//			m_nantCommands.OutputBuildDebug.WriteLine("BuildEvents::OnBuildBegin");
#endif
			if (action == vsBuildAction.vsBuildActionRebuildAll)
				throw new Exception();
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:17,代码来源:Connect_CommandTarget.cs

示例14: OnBuildDone

        private void OnBuildDone(vsBuildScope scope, vsBuildAction action)
        {
            TaskbarManager.Instance.SetProgressState(_buildErrorDetected
                                                         ? TaskbarProgressBarState.Error
                                                         : TaskbarProgressBarState.Normal);

            System.Threading.Thread.Sleep(100);
        }
开发者ID:srn,项目名称:VsBuildProgress,代码行数:8,代码来源:Connect.cs

示例15: BuildEventsOnOnBuildDone

 private void BuildEventsOnOnBuildDone(vsBuildScope scope, vsBuildAction action)
 {
     this.tracer.Trace("Build Done.", "VsProjectFileTracker");
     ProjectItem item = VsxHelper.FindProjectItemByProjectRelativePath(project, fileName);
     var newChangeDate = VsxHelper.GetLastChangeDate(item);
     if (newChangeDate != LastChangeDate)
         OnFileChanged(item);
 }
开发者ID:njwilloughby,项目名称:SpecFlow,代码行数:8,代码来源:VsProjectFileTracker.cs


注:本文中的vsBuildScope类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。