Console.Writeline does not write to output window
-
Console.write and Console.writeline does not write to the output window. this was working before but for some reason no longer does. any one know how i can get it to write to the output window agin.
I don't know if your really typing it like "Console.writeline", and "Console.write", or you just did that accidently when typing this... but the proper syntax is below...
Console.WriteLine("RESPECT THE ENG");
Console.Write("MASSIVE");peace out G. /\ |_ E X E GG
-
Console.write and Console.writeline does not write to the output window. this was working before but for some reason no longer does. any one know how i can get it to write to the output window agin.
I just tried something similar & found I had to...
' Create a tool window handle for the Output window. Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput) ' Create handles to the Output window and its panes. Dim OW As OutputWindow = win.Object Dim OWp As OutputWindowPane Dim textFileOWp As OutputWindowPane Dim found As Boolean Dim enumerator As IEnumerator ' Try to find a pane named "Output" enumerator = OW.OutputWindowPanes.GetEnumerator() found = False Do While enumerator.MoveNext OWp = enumerator.Current If OWp.Name = "Output" Then found = True textFileOWp = OWp End If Loop ' If pane not found Create one If Not found Then textFileOWp = OW.OutputWindowPanes.Add("Output") End If ' Add a new pane to the Output window. ' Add a line of text to the new pane. textFileOWp.Clear() textFileOWp.OutputString("Some Text" & CRLF)
I hope this helps (I'm a complete novice when it comes to macro programming and am just guessing my way) DAve