/// <summary> /// Initialize the thread for NAnt process. /// </summary> public void StartTarget() { if (!NAntProcess.IsWorking) { NAntProcess.Filename = Filename; NAntProcess.TargetNode = CurrentNode; // Sets focus to console VisualStudioUtils.ShowWindow(ApplicationObject, "Output"); NAntProcess.Start(); } }
/// <summary> /// Select the line of NAntNode in the VisualStudio editor. /// </summary> public void SelectNodeLine() { // First load the file into VisualStudio VisualStudioUtils.ShowFile(ApplicationObject, Filename); // Refocus AddIn (lost while opening the file) VisualStudioUtils.ShowWindow(ApplicationObject, Resources.Common.NAntRunner); // Display the node's line within the file VisualStudioUtils.ShowLine(ApplicationObject, Filename, CurrentNode.LineNumber, false); // Finally display the document VisualStudioUtils.ShowDocument(ApplicationObject, Filename); }