How do I write to the Visual Studio Output Window in My Custom Tool?

Output Window To write to the “General” output window in Visual Studio, you need to do the following: IVsOutputWindow outWindow = Package.GetGlobalService( typeof( SVsOutputWindow ) ) as IVsOutputWindow; Guid generalPaneGuid = VSConstants.GUID_OutWindowGeneralPane; // P.S. There’s also the GUID_OutWindowDebugPane available. IVsOutputWindowPane generalPane; outWindow.GetPane( ref generalPaneGuid , out generalPane ); generalPane.OutputString( “Hello World!” ); generalPane.Activate(); // Brings … Read more