本文整理汇总了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();
}
示例2: OnBuildDone
private void OnBuildDone(vsBuildScope scope, vsBuildAction action)
{
if (this.patternManager.IsOpen)
{
this.patternManager.ValidateProductState();
}
}
示例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);
}
}
}
示例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);
}
示例5: OnBuildBegin
void OnBuildBegin(vsBuildScope Scope, vsBuildAction Action)
{
if (Scope != vsBuildScope.vsBuildScopeSolution)
return;
m_timer.Start();
m_start = DateTime.Now;
}
示例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();
}
示例7: OnBuildBegin
private void OnBuildBegin(vsBuildScope scope, vsBuildAction action)
{
foreach (Project project in _dte.Solution.Projects)
{
Generate(project.ProjectItems);
}
}
示例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);
}
}
}
}
}
示例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);
}
}
示例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");
}
}
示例11: BuildEvents_OnBuildBegin
private void BuildEvents_OnBuildBegin(vsBuildScope scope, vsBuildAction action)
{
if (action == vsBuildAction.vsBuildActionClean)
return;
Restore();
}
示例12: OnBuildBegin
private void OnBuildBegin(vsBuildScope Scope, vsBuildAction Action)
{
if (Action == vsBuildAction.vsBuildActionClean || Action == vsBuildAction.vsBuildActionRebuildAll)
{
if (WebLinterPackage.Settings.CleanErrorsOnBuild)
TableDataSource.Instance.CleanAllErrors();
}
}
示例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();
}
示例14: OnBuildDone
private void OnBuildDone(vsBuildScope scope, vsBuildAction action)
{
TaskbarManager.Instance.SetProgressState(_buildErrorDetected
? TaskbarProgressBarState.Error
: TaskbarProgressBarState.Normal);
System.Threading.Thread.Sleep(100);
}
示例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);
}